You are here

function hook_flag_options_alter in Flag 8.4

Same name and namespace in other branches
  1. 6.2 flag.api.php \hook_flag_options_alter()
  2. 7.3 flag.api.php \hook_flag_options_alter()
  3. 7.2 flag.api.php \hook_flag_options_alter()

Alter a flag's default options.

Modules that wish to extend flags and provide additional options must declare them here so that their additions to the flag admin form are saved into the flag object.

Parameters

array $options: The array of default options for the flag type, with the options for the flag's link type merged in.

\Drupal\flag\FlagInterface $flag: The flag object.

File

./flag.api.php, line 45
Hooks provided by the Flag module.

Code

function hook_flag_options_alter(array &$options, FlagInterface $flag) {
}