Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocalTaskManager.php

LocalTaskManager::$defaults

Type: defaults

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 = [
    // (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' => '',
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal