function OrderOperation::identify

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Hook/OrderOperation/OrderOperation.php \Drupal\Core\Hook\OrderOperation\OrderOperation::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".

2 methods override OrderOperation::identify()
BeforeOrAfter::identify in core/lib/Drupal/Core/Hook/OrderOperation/BeforeOrAfter.php
Gets an identifier for the target implementation.
FirstOrLast::identify in core/lib/Drupal/Core/Hook/OrderOperation/FirstOrLast.php
Gets an identifier for the target implementation.

File

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

Class

OrderOperation
Base class for order operations.

Namespace

Drupal\Core\Hook\OrderOperation

Code

abstract public function identify() : string;

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