diff --git a/core/includes/menu.inc b/core/includes/menu.inc
index 6f699aa..f04e43c 100644
--- a/core/includes/menu.inc
+++ b/core/includes/menu.inc
@@ -1743,12 +1743,13 @@ function theme_menu_local_action($variables) {
$link['localized_options']['attributes']['class'][] = 'button-action';
$output = '
';
- // @todo Remove the is_plugin check once
- if (!empty($link['route_name']) && !empty($link['is_plugin'])) {
- $output .= Drupal::l($link['title'], $link['route_name'], $link['route_parameters'], $link['localized_options']);
+ // @todo Remove this check and the call to l() when all pages are converted
+ // to routes.
+ if (!empty($link['href'])) {
+ $output .= l($link['title'], $link['href'], $link['localized_options']);
}
else {
- $output .= l($link['title'], $link['href'], $link['localized_options']);
+ $output .= Drupal::l($link['title'], $link['route_name'], $link['route_parameters'], $link['localized_options']);
}
$output .= "";
diff --git a/core/lib/Drupal/Core/Menu/LocalActionManager.php b/core/lib/Drupal/Core/Menu/LocalActionManager.php
index 8abf522..fbdf66b 100644
--- a/core/lib/Drupal/Core/Menu/LocalActionManager.php
+++ b/core/lib/Drupal/Core/Menu/LocalActionManager.php
@@ -37,7 +37,7 @@ class LocalActionManager extends DefaultPluginManager {
* @var array
*/
protected $defaults = array(
- // The ID.
+ // The plugin id. Set by the plugin system based on the top-level YAML key.
'id' => '',
// The static title for the local action.
'title' => '',
@@ -174,7 +174,6 @@ public function getActionsForRoute($route_appears) {
'route_name' => $route_name,
'route_parameters' => $route_parameters,
'localized_options' => $plugin->getOptions($this->request),
- 'is_plugin' => TRUE,
),
'#access' => $this->accessManager->checkNamedRoute($route_name, $route_parameters),
);