TestHookCollectionHooks.php

Namespace

Drupal\oop_hook_theme\Hook

File

core/modules/system/tests/themes/HookCollector/oop_hook_theme/src/Hook/TestHookCollectionHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\oop_hook_theme\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Contains hooks for testing hook collection.
 */
class TestHookCollectionHooks {
  public function testHookAlter(array &$calls) : void {
    $calls[] = __METHOD__;
  }

}

Classes

Title Deprecated Summary
TestHookCollectionHooks Contains hooks for testing hook collection.

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