contextual_help

contextual_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/contextual/contextual.module, line 73 Adds contextual links to perform actions related to elements on a page. Code function contextual_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.contextual': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Contextual links module giv

contextual_contextual_links_view_alter

contextual_contextual_links_view_alter(&$element, $items) Implements hook_contextual_links_view_alter(). See also \Drupal\contextual\Plugin\views\field\ContextualLinks::render() File core/modules/contextual/contextual.module, line 147 Adds contextual links to perform actions related to elements on a page. Code function contextual_contextual_links_view_alter(&$element, $items) { if (isset($element['#contextual_links']['contextual'])) { $encoded_links = $element['#contextual_link

ContextualValidatorInterface::validate

public ContextualValidatorInterface::validate($value, $constraints = NULL, $groups = NULL, $is_root_call = TRUE) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint \Symfony\Component\Validator\Constraints\Valid is assumed. Parameters mixed $value: The value to validate \Symfony\Component\Validator\Constraint|\Symfony\Component\Validator\Constraint[] $constraints: The constraint(s) to validate against. array|null $groups: The validation g

ContextualValidatorInterface

Extends the contextual validator validate method by a new parameter. Hierarchy interface \Symfony\Component\Validator\Validator\ContextualValidatorInterfaceinterface \Drupal\Core\TypedData\Validation\ContextualValidatorInterface File core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php, line 10 Namespace Drupal\Core\TypedData\Validation Members Name Modifiers Type Description ContextualValidatorInterface::atPath public function Appends the given pa

ContextualLinksPlaceholder::preRenderPlaceholder

public static ContextualLinksPlaceholder::preRenderPlaceholder(array $element) Pre-render callback: Renders a contextual links placeholder into #markup. Renders an empty (hence invisible) placeholder div with a data-attribute that contains an identifier ("contextual id"), which allows the JavaScript of the drupal.contextual-links library to dynamically render contextual links. Parameters array $element: A structured array with #id containing a "contextual id". Return value array The passed-in

ContextualLinksPlaceholder::getInfo

public ContextualLinksPlaceholder::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/contextual/src/Element/ContextualLinksPlaceholder.php, line 19 Class ContextualLinksPlaceholder Provides a contextual_links_placeholder elem

ContextualLinksPlaceholder

Provides a contextual_links_placeholder element. Plugin annotation @RenderElement("contextual_links_placeholder") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\contextual\Element\ContextualLinksPlaceholder File core/modules/contextual/s

ContextualLinks::preRenderLinks

public static ContextualLinks::preRenderLinks(array $element) Pre-render callback: Builds a renderable array for contextual links. Parameters array $element: A renderable array containing a #contextual_links property, which is a keyed array. Each key is the name of the group of contextual links to render (based on the 'group' key in the *.links.contextual.yml files for all enabled modules). The value contains an associative array containing the following keys: route_parameters: The route para

ContextualLinks::moduleHandler

protected static ContextualLinks::moduleHandler() Wraps the module handler. Return value \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/contextual/src/Element/ContextualLinks.php, line 111 Class ContextualLinks Provides a contextual_links element. Namespace Drupal\contextual\Element Code protected static function moduleHandler() { return \Drupal::moduleHandler(); }

ContextualLinks::getInfo

public ContextualLinks::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/contextual/src/Element/ContextualLinks.php, line 19 Class ContextualLinks Provides a contextual_links element. Namespace Drupal\contextual\Element