Revert "Issue #3174832 by pfrenssen, Abhijith S, longwave, alexpott: admin-block-content template variable documentation is incorrect"

This reverts commit 70a3c2c249.
merge-requests/1068/head
catch 2021-03-04 20:59:58 +00:00
parent 70a3c2c249
commit 4129e3db2e
6 changed files with 17 additions and 28 deletions

View File

@ -18,11 +18,10 @@ use Drupal\Core\Url;
* *
* @param $variables * @param $variables
* An associative array containing: * An associative array containing:
* - content: List of administrative menu items. Each menu item contains: * - content: An array containing information about the block. Each element
* - url: Path to the admin section. * of the array represents an administrative menu item, and must at least
* - title: Short name of the section. * contain the keys 'title', 'link_path', and 'localized_options', which are
* - description: Description of the administrative menu item. * passed to l(). A 'description' key may also be provided.
* - options: URL options. See \Drupal\Core\Url::fromUri() for details.
*/ */
function template_preprocess_admin_block_content(&$variables) { function template_preprocess_admin_block_content(&$variables) {
if (!empty($variables['content'])) { if (!empty($variables['content'])) {

View File

@ -4,12 +4,10 @@
* Default theme implementation for the content of an administrative block. * Default theme implementation for the content of an administrative block.
* *
* Available variables: * Available variables:
* - content: List of administrative menu items. Each menu item contains: * - content: A list containing information about the block. Each element
* - link: Link to the admin section. * of the array represents an administrative menu item, and must at least
* - title: Short name of the section. * contain the keys 'title', 'link_path', and 'localized_options', which are
* - description: Description of the administrative menu item. * passed to l(). A 'description' key may also be provided.
* - 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. * - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not. * - compact: Boolean indicating whether compact mode is turned on or not.
* *

View File

@ -8,8 +8,6 @@
* - link: Link to the admin section. * - link: Link to the admin section.
* - title: Short name of the section. * - title: Short name of the section.
* - description: Description of the administrative menu item. * - 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. * - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not. * - compact: Boolean indicating whether compact mode is turned on or not.
* *

View File

@ -7,11 +7,9 @@
* *
* Available variables: * Available variables:
* - content: List of administrative menu items. Each menu item contains: * - content: List of administrative menu items. Each menu item contains:
* - link: Link to the admin section. * - url: Path to the admin section.
* - title: Short name of the section. * - title: Short name of the section.
* - description: Description of the administrative menu item. * - 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. * - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not. * - compact: Boolean indicating whether compact mode is turned on or not.
* *

View File

@ -4,12 +4,10 @@
* Theme override for the content of an administrative block. * Theme override for the content of an administrative block.
* *
* Available variables: * Available variables:
* - content: List of administrative menu items. Each menu item contains: * - content: A list containing information about the block. Each element
* - link: Link to the admin section. * of the array represents an administrative menu item, and must at least
* - title: Short name of the section. * contain the keys 'title', 'link_path', and 'localized_options', which are
* - description: Description of the administrative menu item. * passed to l(). A 'description' key may also be provided.
* - 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. * - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not. * - compact: Boolean indicating whether compact mode is turned on or not.
* *

View File

@ -4,12 +4,10 @@
* Theme override for the content of an administrative block. * Theme override for the content of an administrative block.
* *
* Available variables: * Available variables:
* - content: List of administrative menu items. Each menu item contains: * - content: A list containing information about the block. Each element
* - link: Link to the admin section. * of the array represents an administrative menu item, and must at least
* - title: Short name of the section. * contain the keys 'title', 'link_path', and 'localized_options', which are
* - description: Description of the administrative menu item. * passed to l(). A 'description' key may also be provided.
* - 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. * - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not. * - compact: Boolean indicating whether compact mode is turned on or not.
* *