Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
|
@ -24,18 +23,6 @@ function seven_preprocess_html(&$variables) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK() for page templates.
|
||||
*/
|
||||
function seven_preprocess_page(&$variables) {
|
||||
$variables['primary_local_tasks'] = $variables['tabs'];
|
||||
unset($variables['primary_local_tasks']['#secondary']);
|
||||
$variables['secondary_local_tasks'] = array(
|
||||
'#theme' => 'menu_local_tasks',
|
||||
'#secondary' => isset($variables['tabs']['#secondary']) ? $variables['tabs']['#secondary'] : '',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_pre_render_HOOK() for menu-local-tasks templates.
|
||||
*
|
||||
|
@ -74,7 +61,7 @@ function seven_preprocess_node_add_list(&$variables) {
|
|||
if (!empty($variables['content'])) {
|
||||
/** @var \Drupal\node\NodeTypeInterface $type */
|
||||
foreach ($variables['content'] as $type) {
|
||||
$variables['types'][$type->id()]['label'] = SafeMarkup::checkPlain($type->label());
|
||||
$variables['types'][$type->id()]['label'] = $type->label();
|
||||
$variables['types'][$type->id()]['url'] = \Drupal::url('node.add', array('node_type' => $type->id()));
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +76,7 @@ function seven_preprocess_node_add_list(&$variables) {
|
|||
function seven_preprocess_block_content_add_list(&$variables) {
|
||||
if (!empty($variables['content'])) {
|
||||
foreach ($variables['content'] as $type) {
|
||||
$variables['types'][$type->id()]['label'] = SafeMarkup::checkPlain($type->label());
|
||||
$variables['types'][$type->id()]['label'] = $type->label();
|
||||
$options = array('query' => \Drupal::request()->query->all());
|
||||
$variables['types'][$type->id()]['url'] = \Drupal::url('block_content.add_form', array('block_content_type' => $type->id()), $options);
|
||||
}
|
||||
|
|
Reference in a new issue