Skip to content
Snippets Groups Projects
Commit f6205a6f authored by catch's avatar catch
Browse files

Issue #3174832 by pfrenssen, Ramya Balasubramanian, longwave, alexpott:...

Issue #3174832 by pfrenssen, Ramya Balasubramanian, longwave, alexpott: admin-block-content template variable documentation is incorrect
parent 4129e3db
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
......@@ -18,10 +18,11 @@
*
* @param $variables
* An associative array containing:
* - content: An array containing information about the block. Each element
* of the array represents an administrative menu item, and must at least
* contain the keys 'title', 'link_path', and 'localized_options', which are
* passed to l(). A 'description' key may also be provided.
* - content: List of administrative menu items. Each menu item contains:
* - url: Path to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
*/
function template_preprocess_admin_block_content(&$variables) {
if (!empty($variables['content'])) {
......
......@@ -4,10 +4,12 @@
* Default theme implementation for the content of an administrative block.
*
* Available variables:
* - content: A list containing information about the block. Each element
* of the array represents an administrative menu item, and must at least
* contain the keys 'title', 'link_path', and 'localized_options', which are
* passed to l(). A 'description' key may also be provided.
* - content: List of administrative menu items. Each menu item contains:
* - link: Link to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - url: URI to the admin section.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
......
......@@ -8,6 +8,8 @@
* - link: Link to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - url: URI to the admin section.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
......
......@@ -7,9 +7,11 @@
*
* Available variables:
* - content: List of administrative menu items. Each menu item contains:
* - url: Path to the admin section.
* - link: Link to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - url: URI to the admin section.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
......
......@@ -4,10 +4,12 @@
* Theme override for the content of an administrative block.
*
* Available variables:
* - content: A list containing information about the block. Each element
* of the array represents an administrative menu item, and must at least
* contain the keys 'title', 'link_path', and 'localized_options', which are
* passed to l(). A 'description' key may also be provided.
* - content: List of administrative menu items. Each menu item contains:
* - link: Link to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - url: URI to the admin section.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
......
......@@ -4,10 +4,12 @@
* Theme override for the content of an administrative block.
*
* Available variables:
* - content: A list containing information about the block. Each element
* of the array represents an administrative menu item, and must at least
* contain the keys 'title', 'link_path', and 'localized_options', which are
* passed to l(). A 'description' key may also be provided.
* - content: List of administrative menu items. Each menu item contains:
* - link: Link to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - url: URI to the admin section.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment