template_preprocess_entity_add_list(&$variables)
Prepares variables for the list of available bundles.
Default template: entity-add-list.html.twig.
array $variables: An associative array containing:
function template_preprocess_entity_add_list(&$variables) { foreach ($variables['bundles'] as $bundle_name => $bundle_info) { $variables['bundles'][$bundle_name]['description'] = [ '#markup' => $bundle_info['description'], ]; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!system!system.module/function/template_preprocess_entity_add_list/8.1.x