You are here

protected function RoleSectionStorage::sectionStorage in Workbench Access 8

Gets section storage.

Return value

\Drupal\workbench_access\SectionAssociationStorageInterface Section storage.

File

src/RoleSectionStorage.php, line 52

Class

RoleSectionStorage
Defines a role-section storage that uses the State API.

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');
}