function HookOrder::last

Set a hook implementation to be last.

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container: The container builder.

string $hook: The name of the hook.

string $class_and_method: Class and method separated by :: containing the hook implementation.

Return value

void

3 calls to HookOrder::last()
HookOrderEqualPriorityTest::testLast in core/tests/Drupal/Tests/Core/Hook/HookOrderEqualPriorityTest.php
@covers ::last
HookOrderTest::testLast in core/tests/Drupal/Tests/Core/Hook/HookOrderTest.php
@covers ::last
HookOrderTest::testLastNoChange in core/tests/Drupal/Tests/Core/Hook/HookOrderTest.php
@covers ::last

File

core/lib/Drupal/Core/Hook/HookOrder.php, line 42

Class

HookOrder
Helper methods to set priorities of hook implementations.

Namespace

Drupal\Core\Hook

Code

public static function last(ContainerBuilder $container, string $hook, string $class_and_method) : void {
    self::changePriority($container, $hook, $class_and_method, FALSE);
}

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