diff -u b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php --- b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php +++ b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php @@ -141,7 +141,7 @@ '#title' => $this->t('Show primary tabs'), '#default_value' => $config['primary'], ]; - $form['leves']['secondary'] = [ + $form['levels']['secondary'] = [ '#type' => 'checkbox', '#title' => $this->t('Show secondary tabs'), '#default_value' => $config['secondary'], only in patch2: unchanged: --- a/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php +++ b/core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php @@ -91,35 +91,11 @@ public function build() { return $local_actions; } - /** - * {@inheritdoc} - */ - public function buildConfigurationForm(array $form, FormStateInterface $form_state) { - $form = parent::buildConfigurationForm($form, $form_state); - - // The "Primary admin actions" block is never cacheable because hooks creating local - // actions don't provide cacheability metadata. - // @todo Remove after https://www.drupal.org/node/2511516 has landed. - $form['cache']['#disabled'] = TRUE; - $form['cache']['#description'] = $this->t('This block is never cacheable.'); - $form['cache']['max_age']['#value'] = 0; - - return $form; - } - - /** - * {@inheritdoc} - */ - public function getCacheMaxAge() { - // @todo Remove after https://www.drupal.org/node/2511516 has landed. - return 0; - } - - /** + /* * {@inheritdoc} */ public function getCacheContexts() { - return ['route.name']; + return ['route']; } }