TestingHooksProfile.php
Namespace
Drupal\testing_hooks\HookFile
-
core/
profiles/ tests/ testing_hooks/ src/ Hook/ TestingHooksProfile.php
View source
<?php
declare (strict_types=1);
namespace Drupal\testing_hooks\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementation on behalf of another module.
*/
class TestingHooksProfile {
/**
* Implements hook_module_preinstall().
*/
public function flush() : void {
// Set a global value we can check in test code.
$GLOBALS['profile_oop'] = 'profile_oop';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestingHooksProfile | Hook implementation on behalf of another module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.