templates/Admin/edit.html.twig line 1

Open in your IDE?
  1. {% if ajax is not defined %}
  2. {% set ajax = false %}
  3. {% endif %}
  4. {% extends ajax ? 'Admin/admin.html.twig' : 'Admin/base.html.twig' %}
  5. {% block content %}
  6.     {% if view is defined and view %}
  7.         {% include(view) %}
  8.     {% else %}
  9.         {% if not entity is defined %}
  10.             {% set entity = app.request.attributes.get("_controller")|split("Controller")[1]|split("\\")[1] %}
  11.         {% endif %}
  12.         {% include(entity~'/form.html.twig') %}
  13.     {% endif %}
  14. {% endblock %}