function RelativeOrderBase::getOperation
Overrides OrderInterface::getOperation
File
-
core/
lib/ Drupal/ Core/ Hook/ Order/ RelativeOrderBase.php, line 44
Class
- RelativeOrderBase
- Orders an implementation relative to other implementations.
Namespace
Drupal\Core\Hook\OrderCode
public function getOperation(string $identifier) : OrderOperation {
return new BeforeOrAfter($identifier, $this->modules, array_map(static fn(array $class_and_method) => implode('::', $class_and_method), $this->classesAndMethods), $this->isAfter());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.