var/cache/dev/twig/91/91a2efe8fbff4a17a3768224512b693a.php line 38

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. /* components/atoms/text-link-sku/text-link-sku.html.twig */
  16. class __TwigTemplate_deb6df90f3dd5d37f03c7f1d422bc2a1 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. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/atoms/text-link-sku/text-link-sku.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/atoms/text-link-sku/text-link-sku.html.twig"));
  38. // line 1
  39. $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); })()));
  40. // line 2
  41. yield "
  42. ";
  43. // line 3
  44. yield from $this->load("components/atoms/text-link/text-link.html.twig", 3)->unwrap()->yield(CoreExtension::merge($context, ["href" => // line 5
  45. (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
  46. (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
  47. (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 7, $this->source); })())]));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. yield from [];
  51. }
  52. /**
  53. * @codeCoverageIgnore
  54. */
  55. public function getTemplateName(): string
  56. {
  57. return "components/atoms/text-link-sku/text-link-sku.html.twig";
  58. }
  59. /**
  60. * @codeCoverageIgnore
  61. */
  62. public function isTraitable(): bool
  63. {
  64. return false;
  65. }
  66. /**
  67. * @codeCoverageIgnore
  68. */
  69. public function getDebugInfo(): array
  70. {
  71. return array ( 56 => 7, 55 => 6, 54 => 5, 53 => 3, 50 => 2, 48 => 1,);
  72. }
  73. public function getSourceContext(): Source
  74. {
  75. return new Source("{% set href = getProductUrlBySku(sku) %}
  76. {% include 'components/atoms/text-link/text-link.html.twig'
  77. with {
  78. 'href': href,
  79. 'text': text,
  80. 'class': class
  81. } %}
  82. ", "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");
  83. }
  84. }