LocalTaskManager::$defaults

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::defaults
  2. 10 core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::defaults
  3. 11.x core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::defaults

Type: defaults

Overrides DefaultPluginManager::$defaults

File

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

Class

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

Namespace

Drupal\Core\Menu

Code

protected $defaults = [
    // (required) The name of the route this task links to.
'route_name' => '',
    // Parameters for route variables when generating a link.
'route_parameters' => [],
    // 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' => [],
    // 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' => '',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.