var/cache/dev/twig/02/025a0dfc9e2c6bf93a8ddf734b6641dd8f0f515ece605c492270a42ed4db9e0a.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig */
  16. class __TwigTemplate_7b2ca4af54fa9bc9412a1de46f4121ff4db89b02bb96133286d9f5a339607983 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig"));
  40.         // line 1
  41.         if ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'1$this->source); })()), "page", [], "any"falsefalsetrue1)) || ((CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'1$this->source); })()), "page", [], "any"falsefalsetrue1) == false) && (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })())))) {
  42.             // line 2
  43.             yield "    <div class=\"alert alert-danger\">";
  44.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'2$this->source); })()), "key", [], "any"falsefalsetrue2), 2$this->source), "html"nulltrue);
  45.             yield " heeft in de huidige taal geen gekoppelde pagina.
  46.         Vanwege deze reden zal deze productCategorie geen doorverwijzing hebben naar een productCategorie Pagina.
  47.         Om dit op te lossen zorgt u ervoor dat er een product categorie pagina is aangemaakt, waarin ";
  48.             // line 4
  49.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["productCategory"]) || array_key_exists("productCategory"$context) ? $context["productCategory"] : (function () { throw new RuntimeError('Variable "productCategory" does not exist.'4$this->source); })()), "title", [], "any"falsefalsetrue4), 4$this->source), "html"nulltrue);
  50.             yield " staat ingesteld in de huidige taal.
  51.     </div>
  52. ";
  53.         }
  54.         
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         yield from [];
  59.     }
  60.     /**
  61.      * @codeCoverageIgnore
  62.      */
  63.     public function getTemplateName(): string
  64.     {
  65.         return "areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig";
  66.     }
  67.     /**
  68.      * @codeCoverageIgnore
  69.      */
  70.     public function isTraitable(): bool
  71.     {
  72.         return false;
  73.     }
  74.     /**
  75.      * @codeCoverageIgnore
  76.      */
  77.     public function getDebugInfo(): array
  78.     {
  79.         return array (  58 => 4,  52 => 2,  50 => 1,);
  80.     }
  81.     public function getSourceContext(): Source
  82.     {
  83.         return new Source("{% if productCategory.page is empty or productCategory.page == false and editmode %}
  84.     <div class=\"alert alert-danger\">{{ productCategory.key }} heeft in de huidige taal geen gekoppelde pagina.
  85.         Vanwege deze reden zal deze productCategorie geen doorverwijzing hebben naar een productCategorie Pagina.
  86.         Om dit op te lossen zorgt u ervoor dat er een product categorie pagina is aangemaakt, waarin {{ productCategory.title }} staat ingesteld in de huidige taal.
  87.     </div>
  88. {% endif %}""areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig");
  89.     }
  90.     
  91.     public function checkSecurity()
  92.     {
  93.         static $tags = ["if" => 1];
  94.         static $filters = ["escape" => 2];
  95.         static $functions = [];
  96.         try {
  97.             $this->sandbox->checkSecurity(
  98.                 ['if'],
  99.                 ['escape'],
  100.                 [],
  101.                 $this->source
  102.             );
  103.         } catch (SecurityError $e) {
  104.             $e->setSourceContext($this->source);
  105.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  106.                 $e->setTemplateLine($tags[$e->getTagName()]);
  107.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  108.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  109.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  110.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  111.             }
  112.             throw $e;
  113.         }
  114.     }
  115. }