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

Breadcrumb

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

ContextualLinkManager::$defaults

Provides default values for a contextual link definition.

Type: array

Overrides DefaultPluginManager::$defaults

File

core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 30

Class

ContextualLinkManager
Defines a contextual link plugin manager to deal with contextual links.

Namespace

Drupal\Core\Menu

Code

protected $defaults = [
    // (required) The name of the route to link to.
'route_name' => '',
    // (required) The contextual links group.
'group' => '',
    // The static title text for the link.
'title' => '',
    // The default link options.
'options' => [],
    // The weight of the link.
'weight' => NULL,
    // Default class for contextual link implementations.
'class' => '\\Drupal\\Core\\Menu\\ContextualLinkDefault',
    // 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