function BeforeOrAfter::identify

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Hook/OrderOperation/BeforeOrAfter.php \Drupal\Core\Hook\OrderOperation\BeforeOrAfter::identify()

Gets an identifier for the target implementation.

This is used in HookCollectorPass, to remove order operations where the target implementation does not exist at all, or is not registered for the hook that the order operation targets.

The hook implementation identifier, as "$class::$method", to be changed by.

Return value

string Identifier for the implementation that should be moved to a new position. The format is the class followed by '::', then the method name. For example "Drupal\my_module\Hook\MyModuleHooks::methodName".

Overrides OrderOperation::identify

File

core/lib/Drupal/Core/Hook/OrderOperation/BeforeOrAfter.php, line 40

Class

BeforeOrAfter
Moves one listener to be called before or after other listeners.

Namespace

Drupal\Core\Hook\OrderOperation

Code

public function identify() : string {
  return $this->identifier;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.