You are here

public function EntityRoutingMapBase::getContextualLink in Form mode manager 8.2

Return the contextual links mapping for given operation.

Return value

string The contextual link name for given operation.

Overrides EntityRoutingMapInterface::getContextualLink

File

src/EntityRoutingMapBase.php, line 141

Class

EntityRoutingMapBase
Base class for form mode manager entity routing plugin.

Namespace

Drupal\form_mode_manager

Code

public function getContextualLink($operation_name) {
  if (isset($this->pluginDefinition['contextualLinks'][$operation_name])) {
    return $this->pluginDefinition['contextualLinks'][$operation_name];
  }
  return FALSE;
}