<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig */
class __TwigTemplate_7b2ca4af54fa9bc9412a1de46f4121ff4db89b02bb96133286d9f5a339607983 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__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"));
// line 1
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", false, false, true, 1)) || ((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", false, false, true, 1) == false) && (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())))) {
// line 2
yield " <div class=\"alert alert-danger\">";
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", false, false, true, 2), 2, $this->source), "html", null, true);
yield " heeft in de huidige taal geen gekoppelde pagina.
Vanwege deze reden zal deze productCategorie geen doorverwijzing hebben naar een productCategorie Pagina.
Om dit op te lossen zorgt u ervoor dat er een product categorie pagina is aangemaakt, waarin ";
// line 4
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", false, false, true, 4), 4, $this->source), "html", null, true);
yield " staat ingesteld in de huidige taal.
</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 58 => 4, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if productCategory.page is empty or productCategory.page == false and editmode %}
<div class=\"alert alert-danger\">{{ productCategory.key }} heeft in de huidige taal geen gekoppelde pagina.
Vanwege deze reden zal deze productCategorie geen doorverwijzing hebben naar een productCategorie Pagina.
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.
</div>
{% 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");
}
public function checkSecurity()
{
static $tags = ["if" => 1];
static $filters = ["escape" => 2];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['if'],
['escape'],
[],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}