You are here

public static function Dazzler::moduleImplementsAlter in Formdazzle! 2.x

In the list of module form_alter hooks, move formdazzle to be last.

Parameters

string|FALSE[] $implementations: An array keyed by the module's name.

string $hook: The name of the module hook being implemented.

2 calls to Dazzler::moduleImplementsAlter()
DazzlerTest::testModuleImplementsAlter in tests/src/Unit/DazzlerTest.php
@covers ::moduleImplementsAlter
formdazzle_module_implements_alter in ./formdazzle.module
Implements hook_module_implements_alter().

File

src/Dazzler.php, line 386

Class

Dazzler
A class providing methods to modify Drupal form elements.

Namespace

Drupal\formdazzle

Code

public static function moduleImplementsAlter(&$implementations, $hook) {
  if ($hook === 'form_alter') {
    $group = $implementations['formdazzle'];
    unset($implementations['formdazzle']);
    $implementations['formdazzle'] = $group;
  }
}