You are here

protected property LocalActionManager::$defaults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/LocalActionManager.php \Drupal\Core\Menu\LocalActionManager::defaults

Provides some default values for all local action plugins.

Type: array

Overrides DefaultPluginManager::$defaults

File

core/lib/Drupal/Core/Menu/LocalActionManager.php, line 35
Contains \Drupal\Core\Menu\LocalActionManager.

Class

LocalActionManager
Provides the default local action manager using YML as primary definition.

Namespace

Drupal\Core\Menu

Code

protected $defaults = array(
  // The plugin id. Set by the plugin system based on the top-level YAML key.
  'id' => NULL,
  // The static title for the local action.
  'title' => '',
  // The weight of the local action.
  'weight' => NULL,
  // (Required) the route name used to generate a link.
  'route_name' => NULL,
  // Default route parameters for generating links.
  'route_parameters' => array(),
  // Associative array of link options.
  'options' => array(),
  // The route names where this local action appears.
  'appears_on' => array(),
  // Default class for local action implementations.
  'class' => 'Drupal\\Core\\Menu\\LocalActionDefault',
);