diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 49cf836..5618990 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -50,14 +50,14 @@ function seven_preprocess_node_add_list(&$variables) { } } - /** - * Overrides theme_custom_block_add_list(). - * Overrides variables for custom-block-add-list.html.twig - * Add variables for the label and the path separately. - * - * Displays the list of available custom block types for creation. - * - */ +/** + * Overrides variables for custom-block-add-list.html.twig + * Add variables for the label and the path separately. + * + * Displays the list of available custom block types for creation, adding + * separate variables for the label and the path. + * + */ function seven_preprocess_custom_block_add_list(&$variables) { if (!empty($variables['content'])) { foreach ($variables['content'] as $type) { diff --git a/core/themes/seven/templates/custom-block-add-list.html.twig b/core/themes/seven/templates/custom-block-add-list.html.twig index 529f0bd..cc66b21 100644 --- a/core/themes/seven/templates/custom-block-add-list.html.twig +++ b/core/themes/seven/templates/custom-block-add-list.html.twig @@ -1,12 +1,17 @@ {# /** - * Default theme implementation to present the content of a custom block. + * @file + * Overrides custom-block-add-list.html.twig. + * + * Displays the list of available custom block types for creation. * * Available variables: * - types: A collection of all the available custom block types. * - type: The custom block type, containing all the items below. * - type.link: A link to add a block of this type. * - type.description: A description of this custom block type. + * - type.label: The title of the custom block type. + * - type.path: A path for the link to add a block of this type. * * @see template_preprocess() * @see template_preprocess_custom_block_add_list() @@ -14,9 +19,10 @@ * @ingroup themeable */ #} -