var/cache/dev/twig/5a/5a52ac348232216402f3f4aaf180adaa36436c040de38559c8077c05f94d5d95.php line 57

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SonataAdmin/CRUD/list__action.html.twig */
  14. class __TwigTemplate_bfbf2f7ee6532ccde880bfa543944e94981a349099a6c0163f63a5e0f6a39998 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'field' => [$this'block_field'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 12
  29.         return $this->loadTemplate($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("base_list_field"twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'12$this->source); })()), "code", [], "any"falsefalsefalse12)), "@SonataAdmin/CRUD/list__action.html.twig"12);
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/list__action.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/CRUD/list__action.html.twig"));
  38.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  39.         
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  41.         
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  43.     }
  44.     // line 14
  45.     public function block_field($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field"));
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field"));
  52.         // line 15
  53.         echo "    <div class=\"btn-group\">
  54.         ";
  55.         // line 16
  56.         $context['_parent'] = $context;
  57.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["field_description"]) || array_key_exists("field_description"$context) ? $context["field_description"] : (function () { throw new RuntimeError('Variable "field_description" does not exist.'16$this->source); })()), "option", [=> "actions"], "method"falsefalsefalse16));
  58.         $context['loop'] = [
  59.           'parent' => $context['_parent'],
  60.           'index0' => 0,
  61.           'index'  => 1,
  62.           'first'  => true,
  63.         ];
  64.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  65.             $length count($context['_seq']);
  66.             $context['loop']['revindex0'] = $length 1;
  67.             $context['loop']['revindex'] = $length;
  68.             $context['loop']['length'] = $length;
  69.             $context['loop']['last'] = === $length;
  70.         }
  71.         foreach ($context['_seq'] as $context["_key"] => $context["actions"]) {
  72.             // line 17
  73.             echo "            ";
  74.             $this->loadTemplate(twig_get_attribute($this->env$this->source$context["actions"], "template", [], "any"falsefalsefalse17), "@SonataAdmin/CRUD/list__action.html.twig"17)->display($context);
  75.             // line 18
  76.             echo "        ";
  77.             ++$context['loop']['index0'];
  78.             ++$context['loop']['index'];
  79.             $context['loop']['first'] = false;
  80.             if (isset($context['loop']['length'])) {
  81.                 --$context['loop']['revindex0'];
  82.                 --$context['loop']['revindex'];
  83.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  84.             }
  85.         }
  86.         $_parent $context['_parent'];
  87.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['actions'], $context['_parent'], $context['loop']);
  88.         $context array_intersect_key($context$_parent) + $_parent;
  89.         // line 19
  90.         echo "    </div>
  91. ";
  92.         
  93.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  94.         
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  96.     }
  97.     public function getTemplateName()
  98.     {
  99.         return "@SonataAdmin/CRUD/list__action.html.twig";
  100.     }
  101.     public function isTraitable()
  102.     {
  103.         return false;
  104.     }
  105.     public function getDebugInfo()
  106.     {
  107.         return array (  104 => 19,  90 => 18,  87 => 17,  70 => 16,  67 => 15,  57 => 14,  35 => 12,);
  108.     }
  109.     public function getSourceContext()
  110.     {
  111.         return new Source("{#
  112. This file is part of the Sonata package.
  113. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  114. For the full copyright and license information, please view the LICENSE
  115. file that was distributed with this source code.
  116. #}
  117. {% extends get_admin_template('base_list_field', admin.code) %}
  118. {% block field %}
  119.     <div class=\"btn-group\">
  120.         {% for actions in field_description.option('actions') %}
  121.             {% include actions.template %}
  122.         {% endfor %}
  123.     </div>
  124. {% endblock %}
  125. ""@SonataAdmin/CRUD/list__action.html.twig""/var/www/test-dashboard.talkabot.net/public_html/dashboard/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/list__action.html.twig");
  126.     }
  127. }