You are here

function force_password_change_entity_type_alter in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 force_password_change.module \force_password_change_entity_type_alter()

Implements hook_entity_type_alter().

Changes the callback class for the role list builder class. The new class overrides the original class, and adds the link to the force password change settings on the role listing page.

File

./force_password_change.module, line 377

Code

function force_password_change_entity_type_alter(array &$entity_types) {
  $entity_types['user_role']
    ->setListBuilderClass('\\Drupal\\force_password_change\\Entity\\User\\ForcePasswordChangeRoleListBuilder');
}