Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
|
@ -580,20 +580,29 @@ function template_preprocess_datetime_wrapper(&$variables) {
|
|||
*
|
||||
* Default template: links.html.twig.
|
||||
*
|
||||
* Unfortunately links templates duplicate the "active" class handling of l()
|
||||
* and LinkGenerator::generate() because it needs to be able to set the "active"
|
||||
* class not on the links themselves ("a" tags), but on the list items ("li"
|
||||
* tags) that contain the links. This is necessary for CSS to be able to style
|
||||
* list items differently when the link is active, since CSS does not yet allow
|
||||
* one to style list items only if it contains a certain element with a certain
|
||||
* class. I.e. we cannot yet convert this jQuery selector to a CSS selector:
|
||||
* jQuery('li:has("a.is-active")')
|
||||
*
|
||||
* @param array $variables
|
||||
* An associative array containing:
|
||||
* - links: An array of links to be themed. Each link should be itself an
|
||||
* array, with the following elements:
|
||||
* - title: The link text.
|
||||
* - url: (optional) The url object to link to. If omitted, no a tag is
|
||||
* printed out.
|
||||
* - url: (optional) The \Drupal\Core\Url object to link to. If omitted, no
|
||||
* anchor tag is printed out.
|
||||
* - attributes: (optional) Attributes for the anchor, or for the <span>
|
||||
* tag used in its place if no 'href' is supplied. If element 'class' is
|
||||
* included, it must be an array of one or more class names.
|
||||
* If the 'href' element is supplied, the entire link array is passed to
|
||||
* l() as its $options parameter.
|
||||
* - attributes: A keyed array of attributes for the UL containing the
|
||||
* list of links.
|
||||
* - attributes: A keyed array of attributes for the <ul> containing the list
|
||||
* of links.
|
||||
* - set_active_class: (optional) Whether each link should compare the
|
||||
* route_name + route_parameters or href (path), language and query options
|
||||
* to the current URL, to determine whether the link is "active". If so, an
|
||||
|
|
@ -622,15 +631,6 @@ function template_preprocess_datetime_wrapper(&$variables) {
|
|||
* http://juicystudio.com/article/screen-readers-display-none.php and
|
||||
* http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
|
||||
*
|
||||
* Unfortunately links templates duplicate the "active" class handling of l()
|
||||
* and LinkGenerator::generate() because it needs to be able to set the "active"
|
||||
* class not on the links themselves ("a" tags), but on the list items ("li"
|
||||
* tags) that contain the links. This is necessary for CSS to be able to style
|
||||
* list items differently when the link is active, since CSS does not yet allow
|
||||
* one to style list items only if it contains a certain element with a certain
|
||||
* class. I.e. we cannot yet convert this jQuery selector to a CSS selector:
|
||||
* jQuery('li:has("a.is-active")')
|
||||
*
|
||||
* @see \Drupal\Core\Utility\LinkGenerator
|
||||
* @see \Drupal\Core\Utility\LinkGenerator::generate()
|
||||
* @see system_page_attachments()
|
||||
|
|
@ -1052,6 +1052,7 @@ function template_preprocess_table(&$variables) {
|
|||
* render properties for all nested child lists.
|
||||
* - title: A title to be prepended to the list.
|
||||
* - list_type: The type of list to return (e.g. "ul", "ol").
|
||||
* - wrapper_attributes: HTML attributes to be applied to the list wrapper.
|
||||
*
|
||||
* @see https://www.drupal.org/node/1842756
|
||||
*/
|
||||
|
|
@ -1264,7 +1265,7 @@ function template_preprocess_html(&$variables) {
|
|||
// Add a variable for the root path. This can be used to create a class and
|
||||
// theme the page depending on the current path (e.g. node, admin, user) as
|
||||
// well as more specific data like path-frontpage.
|
||||
$is_front_page = \Drupal::service('path.matcher')->isFrontPage();
|
||||
$is_front_page = \Drupal::service('path.matcher')->isFrontPage();
|
||||
|
||||
if ($is_front_page) {
|
||||
$variables['root_path'] = FALSE;
|
||||
|
|
@ -1527,7 +1528,7 @@ function template_preprocess_field(&$variables, $hook) {
|
|||
|
||||
static $default_attributes;
|
||||
if (!isset($default_attributes)) {
|
||||
$default_attributes = new Attribute;
|
||||
$default_attributes = new Attribute();
|
||||
}
|
||||
|
||||
// Merge attributes when a single-value field has a hidden label.
|
||||
|
|
|
|||
Reference in a new issue