site-setting-entity-content-add-list.html.twig in Site Settings and Labels 8
Default theme implementation to present a list of custom content entity types/bundles.
Available variables:
- types: A collection of all the available custom entity types/bundles.
Each type/bundle contains the following:
- link: A link to add a content entity of this type.
- description: A description of this content entity types/bundle.
1 theme call to site-setting-entity-content-add-list.html.twig
- SiteSettingEntityAddController::add in src/
Controller/ SiteSettingEntityAddController.php - Displays add links for available bundles/types.
File
templates/site-setting-entity-content-add-list.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to present a list of custom content entity types/bundles.
- *
- * Available variables:
- * - types: A collection of all the available custom entity types/bundles.
- * Each type/bundle contains the following:
- * - link: A link to add a content entity of this type.
- * - description: A description of this content entity types/bundle.
- *
- * @see template_preprocess_site_setting_entity_content_add_list()
- *
- * @ingroup themeable
- */
- #}
- {% apply spaceless %}
- <dl>
- {% for type in types %}
- <dt>{{ type.link }}</dt>
- {% endfor %}
- </dl>
- {% endapply %}