You are here

protected function UserSectionStorage::userStorage in Workbench Access 8

Gets user storage handler.

The entity build process takes place too early in the call stack so we end up with a stale reference to the user storage handler if we do this in the constructor.

Return value

\Drupal\Core\Entity\EntityStorageInterface User storage.

File

src/UserSectionStorage.php, line 231

Class

UserSectionStorage
Defines a class for storing and retrieving sections assigned to a user.

Namespace

Drupal\workbench_access

Code

protected function userStorage() {
  return $this->entityTypeManager
    ->getStorage('user');
}