You are here

public function EntityRoutingMapBase::getOperation in Form mode manager 8.2

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

Parameters

string $operation_name: The name of needed operation to retrieve.

Overrides EntityRoutingMapInterface::getOperation

File

src/EntityRoutingMapBase.php, line 96

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;
}