<?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;
/* components/atoms/text-link-sku/text-link-sku.html.twig */
class __TwigTemplate_deb6df90f3dd5d37f03c7f1d422bc2a1 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 = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/atoms/text-link-sku/text-link-sku.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/atoms/text-link-sku/text-link-sku.html.twig"));
// line 1
$context["href"] = $this->extensions['App\Twig\Functions\UrlProviderExtension']->getProductUrlBySku((isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 1, $this->source); })()));
// line 2
yield "
";
// line 3
yield from $this->load("components/atoms/text-link/text-link.html.twig", 3)->unwrap()->yield(CoreExtension::merge($context, ["href" => // line 5
(isset($context["href"]) || array_key_exists("href", $context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.', 5, $this->source); })()), "text" => // line 6
(isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 6, $this->source); })()), "class" => // line 7
(isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 7, $this->source); })())]));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/atoms/text-link-sku/text-link-sku.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 56 => 7, 55 => 6, 54 => 5, 53 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set href = getProductUrlBySku(sku) %}
{% include 'components/atoms/text-link/text-link.html.twig'
with {
'href': href,
'text': text,
'class': class
} %}
", "components/atoms/text-link-sku/text-link-sku.html.twig", "/var/www/html/templates/default/components/atoms/text-link-sku/text-link-sku.html.twig");
}
}