W3cubDocs

/Drupal 8

protected property LocalTaskManager::$defaults

A set of defaults to be referenced by $this->processDefinition() if additional processing of plugins is necessary or helpful for development purposes.

Type: array

Overrides DefaultPluginManager::$defaults

File

core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 32

Class

LocalTaskManager
Provides the default local task manager using YML as primary definition.

Namespace

Drupal\Core\Menu

Code

protected $defaults = array(
  // (required) The name of the route this task links to.
  'route_name' => '',
  // Parameters for route variables when generating a link.
  'route_parameters' => array(),
  // The static title for the local task.
  'title' => '',
  // The route name where the root tab appears.
  'base_route' => '',
  // The plugin ID of the parent tab (or NULL for the top-level tab).
  'parent_id' => NULL,
  // The weight of the tab.
  'weight' => NULL,
  // The default link options.
  'options' => array(),
  // Default class for local task implementations.
  'class' => 'Drupal\Core\Menu\LocalTaskDefault',
  // The plugin id. Set by the plugin system based on the top-level YAML key.
  'id' => '',
);

© 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!LocalTaskManager.php/property/LocalTaskManager::defaults/8.1.x