W3cubDocs

/Drupal 8

protected property 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 31

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',
);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!LocalActionManager.php/property/LocalActionManager::defaults/8.1.x