protected property LocalTaskManager::$defaults in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\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\MenuCode
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' => '',
];