src/Drupal/functions module.php

Functions

drupal_alter()

drupal_alter(string|string[]  $type, mixed  $data, mixed  $context1 = null, mixed  $context2 = null, mixed  $context3 = null) : void

Parameters

string|string[] $type
mixed $data
mixed $context1
mixed $context2
mixed $context3

Returns

void —

module_exists()

module_exists(string  $module) : bool

Parameters

string $module

Returns

bool —

module_hook()

module_hook(string  $module, string  $hook) : bool

Parameters

string $module
string $hook

Returns

bool —

module_implements()

module_implements(string  $hook, bool  $sort = false, bool  $reset = false) : string[]

Parameters

string $hook
bool $sort
bool $reset

Returns

string[] —

module_invoke()

module_invoke(string  $module, string  $hook) : mixed

Parameters

string $module
string $hook

Returns

mixed —

module_invoke_all()

module_invoke_all(string  $hook) : array<int,mixed>

Parameters

string $hook

Returns

array —

module_list()

module_list(bool  $refresh = false, bool  $bootstrap_refresh = false, bool  $sort = false, array  $fixed_list = null) : string[]

Parameters

bool $refresh
bool $bootstrap_refresh
bool $sort
array $fixed_list

Returns

string[] —