Loading qa_accounts.module +5 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ * Creates dummy accounts to aid in testing. */ use Drupal\Core\Session\AccountInterface; use Drupal\user\RoleInterface; /** Loading @@ -18,8 +19,10 @@ function qa_accounts_user_role_insert(RoleInterface $role) { return; } if ($role->id() !== AccountInterface::ANONYMOUS_ROLE) { \Drupal::service('qa_accounts.create_delete')->createQaAccountForRole($role->id()); } } /** * Implements hook_ENTITY_TYPE_delete(). Loading @@ -32,5 +35,7 @@ function qa_accounts_user_role_delete(RoleInterface $role) { return; } if ($role->id() !== AccountInterface::ANONYMOUS_ROLE) { \Drupal::service('qa_accounts.create_delete')->deleteQaAccountForRole($role->id()); } } Loading
qa_accounts.module +5 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ * Creates dummy accounts to aid in testing. */ use Drupal\Core\Session\AccountInterface; use Drupal\user\RoleInterface; /** Loading @@ -18,8 +19,10 @@ function qa_accounts_user_role_insert(RoleInterface $role) { return; } if ($role->id() !== AccountInterface::ANONYMOUS_ROLE) { \Drupal::service('qa_accounts.create_delete')->createQaAccountForRole($role->id()); } } /** * Implements hook_ENTITY_TYPE_delete(). Loading @@ -32,5 +35,7 @@ function qa_accounts_user_role_delete(RoleInterface $role) { return; } if ($role->id() !== AccountInterface::ANONYMOUS_ROLE) { \Drupal::service('qa_accounts.create_delete')->deleteQaAccountForRole($role->id()); } }