function FirstOrLast::__construct

Constructor.

Parameters

string $identifier: Identifier of the implementation to move to a new position. The format is the class followed by "::" then the method name. For example, "Drupal\my_module\Hook\MyModuleHooks::methodName".

bool $isLast: TRUE to move to the end, FALSE to move to the start.

File

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

Class

FirstOrLast
Moves one listener to the start or end of the list.

Namespace

Drupal\Core\Hook\OrderOperation

Code

public function __construct(string $identifier, bool $isLast) {
}

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