function OrderOperation::apply

Changes the order of a list of hook implementations.

Parameters

list<string> $identifiers: Hook implementation identifiers, as "$class::$method", to be changed by reference. The order operation must make sure that the array remains a list, and that the values are the same as before.

array<string, string> $module_finder: Lookup map to find a module name for each implementation. This may contain more entries than $identifiers.

2 methods override OrderOperation::apply()
BeforeOrAfter::apply in core/lib/Drupal/Core/Hook/OrderOperation/BeforeOrAfter.php
Changes the order of a list of hook implementations.
FirstOrLast::apply in core/lib/Drupal/Core/Hook/OrderOperation/FirstOrLast.php
Changes the order of a list of hook implementations.

File

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

Class

OrderOperation
Base class for order operations.

Namespace

Drupal\Core\Hook\OrderOperation

Code

public abstract function apply(array &$identifiers, array $module_finder) : void;

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