You are here

protected function UserSectionStorage::sectionStorage in Workbench Access 8

Gets section storage.

Return value

\Drupal\Core\Entity\EntityStorageInterface Section storage.

File

src/UserSectionStorage.php, line 65

Class

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

Namespace

Drupal\workbench_access

Code

protected function sectionStorage() {

  // The entity build process takes place too early in the call stack and we
  // have test fails if we add this to the __construct().
  return $this->entityTypeManager
    ->getStorage('section_association');
}