Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
|
@ -254,6 +254,7 @@ function template_preprocess_details(&$variables) {
|
|||
$variables['description'] = (!empty($element['#description'])) ? $element['#description'] : '';
|
||||
$variables['children'] = (isset($element['#children'])) ? $element['#children'] : '';
|
||||
$variables['value'] = (isset($element['#value'])) ? $element['#value'] : '';
|
||||
$variables['required'] = !empty($element['#required']) ? $element['#required'] : NULL;
|
||||
|
||||
// Suppress error messages.
|
||||
$variables['errors'] = NULL;
|
||||
|
|
@ -592,7 +593,8 @@ function template_preprocess_form_element_label(&$variables) {
|
|||
* // 1 (or no value explicitly set) means the operation is finished
|
||||
* // and the batch processing can continue to the next operation.
|
||||
*
|
||||
* $nodes = entity_load_multiple_by_properties('node', array('uid' => $uid, 'type' => $type));
|
||||
* $nodes = \Drupal::entityTypeManager()->getStorage('node')
|
||||
* ->loadByProperties(['uid' => $uid, 'type' => $type]);
|
||||
* $node = reset($nodes);
|
||||
* $context['results'][] = $node->id() . ' : ' . SafeMarkup::checkPlain($node->label());
|
||||
* $context['message'] = SafeMarkup::checkPlain($node->label());
|
||||
|
|
|
|||
Reference in a new issue