Hooks
final class Hooks implements ContainerInjectionInterface
Implements module hooks.
Traits
Methods
Constructs a new Hooks object.
Implements hook_help().
Implements hook_theme().
Implements hook_validation_constraint_alter().
Implements hook_form_BASE_FORM_ID_alter().
Details
at line 31
__construct(TranslationInterface $stringTranslation, ModuleHandlerInterface $moduleHandler, AuthmapInterface $authMap, FilterPluginManager $filterManager, ConfigFactoryInterface $configFactory)
Constructs a new Hooks object.
at line 44
static Hooks
create(ContainerInterface $container)
{@inheritDoc}
at line 57
string|Stringable|array|null
help(string $route_name, RouteMatchInterface $route_match)
Implements hook_help().
at line 78
array
theme($existing, $type, $theme, $path)
Implements hook_theme().
at line 93
void
validationConstraintAlter(array $definitions)
Implements hook_validation_constraint_alter().
Replace core's ProtectedUserFieldConstraint with a decorated version that skips the validation if a user was provisioned by BankID.
at line 106
void
userFormAlter(array $form, FormStateInterface $form_state, $form_id)
Implements hook_form_BASE_FORM_ID_alter().
Hide passwords fields on the user edit form if the user was provisioned via BankID as they don't have a Drupal password.