You are here

public function EntityRoutingMapBase::getOperation in Form mode manager 8

Same name and namespace in other branches
  1. 8.2 src/EntityRoutingMapBase.php \Drupal\form_mode_manager\EntityRoutingMapBase::getOperation()

Return the form operation route for given operation.

Return value

string The route of given operation.

Overrides EntityRoutingMapInterface::getOperation

File

src/EntityRoutingMapBase.php, line 76

Class

EntityRoutingMapBase
Base class for form mode manager entity routing plugin.

Namespace

Drupal\form_mode_manager

Code

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