ContextualLinkDefault::getWeight

public ContextualLinkDefault::getWeight() Returns the weight of the contextual link. The contextual links in one group are sorted by weight for display. Return value int The weight as positive/negative integer. Overrides ContextualLinkInterface::getWeight File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 45 Class ContextualLinkDefault Provides a common base implementation of a contextual link. Namespace Drupal\Core\Menu Code public function getWeight() { return $this-&g

ContextualLinkDefault::getTitle

public ContextualLinkDefault::getTitle(Request $request = NULL) Returns the localized title to be shown for this contextual link. Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver. Return value string The title to be shown for this action. Overrides ContextualLinkInterface::getTitle See also \Drupal\Core\Menu\ContextualLinksManager::getTitle() File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 16 Class Context

ContextualLinkDefault::getRouteName

public ContextualLinkDefault::getRouteName() Returns the route name of the contextual link. Return value string The name of the route this contextual link links to. Overrides ContextualLinkInterface::getRouteName File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 24 Class ContextualLinkDefault Provides a common base implementation of a contextual link. Namespace Drupal\Core\Menu Code public function getRouteName() { return $this->pluginDefinition['route_name']; }

ContextualLinkDefault::getOptions

public ContextualLinkDefault::getOptions() Returns the link options passed to the link generator. Return value array An associative array of options. Overrides ContextualLinkInterface::getOptions File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 38 Class ContextualLinkDefault Provides a common base implementation of a contextual link. Namespace Drupal\Core\Menu Code public function getOptions() { return $this->pluginDefinition['options']; }

ContextualLinkDefault::getGroup

public ContextualLinkDefault::getGroup() Returns the group this contextual link should be rendered in. A contextual link group is a set of contextual links that are displayed together on a certain page. For example, the 'block' group displays all links related to the block, such as the block instance edit link as well as the views edit link, if it is a view block. Return value string The contextual links group name. Overrides ContextualLinkInterface::getGroup File core/lib/Drupal/Core/Menu/Con

ContextualLinkDefault

Provides a common base implementation of a contextual link. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Menu\ContextualLinkDefault implements ContextualLinkInterface File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 11 Namespace Drupal\Core\Menu Members Name Modifiers Type Description ContextualLinkDefault::getGroup public function Returns the group this contextual

ContextualController::render

public ContextualController::render(Request $request) Returns the requested rendered contextual links. Given a list of contextual links IDs, render them. Hence this must be robust to handle arbitrary input. Return value \Symfony\Component\HttpFoundation\JsonResponse The JSON response. See also contextual_preprocess() File core/modules/contextual/src/ContextualController.php, line 29 Class ContextualController Returns responses for Contextual module routes. Namespace Drupal\contextual

ContextualController

Returns responses for Contextual module routes. Hierarchy class \Drupal\contextual\ContextualController implements ContainerAwareInterface uses ContainerAwareTrait File core/modules/contextual/src/ContextualController.php, line 14 Namespace Drupal\contextual Members Name Modifiers Type Description ContainerAwareTrait::$container protected property ContainerAwareTrait::setContainer public function Sets the container. Overrides ContainerAwareInterface::setContainer

contextual.views.inc

Provide views data for contextual.module. File core/modules/contextual/contextual.views.inc Functions Name Description contextual_views_data_alter Implements hook_views_data_alter().

contextual.module

Adds contextual links to perform actions related to elements on a page. File core/modules/contextual/contextual.module Functions Name Description contextual_contextual_links_view_alter Implements hook_contextual_links_view_alter(). contextual_help Implements hook_help(). contextual_page_attachments Implements hook_page_attachments(). contextual_preprocess Implements hook_preprocess(). contextual_toolbar Implements hook_toolbar(). _contextual_id_to_links Unserialize