Skip to content

Commit

Permalink
DIGITAL-239: code standard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clmedders committed Dec 23, 2024
1 parent 406f1bc commit 21da656
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ConfigAutologoutRoles extends Config {
*/
public function import(Row $row, array $old_destination_id_values = []) {
$dg_autologout_role = 'dg_autologout.role.';
$roles = \Drupal::entityTypeManager()->getStorage('user_role')->loadMultiple();
$roles = entityTypeManager()->getStorage('user_role')->loadMultiple();

Check failure on line 23 in web/modules/custom/dg_autologout/src/Plugin/migrate/destination/ConfigAutologoutRoles.php

View workflow job for this annotation

GitHub Actions / validate / validate

Function entityTypeManager not found.
foreach ($roles as $role) {
if (strtolower($row->getSourceProperty('role')) === strtolower($role->label())) {
$dg_autologout_role = 'dg_autologout.role.' . $role->id();
Expand Down

0 comments on commit 21da656

Please sign in to comment.