You are here

protected function AccessScheme::getPluginCollection in Workbench Access 8

Encapsulates the creation of the access scheme plugin collection.

Return value

\Drupal\Core\Plugin\DefaultSingleLazyPluginCollection The access scheme's plugin collection.

1 call to AccessScheme::getPluginCollection()
AccessScheme::getPluginCollections in src/Entity/AccessScheme.php
Gets the plugin collections used by this object.

File

src/Entity/AccessScheme.php, line 126

Class

AccessScheme
Defines the Access scheme entity.

Namespace

Drupal\workbench_access\Entity

Code

protected function getPluginCollection() {
  if (!$this->accessSchemePluginCollection && $this->scheme) {
    $this->accessSchemePluginCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.workbench_access.scheme'), $this->scheme, $this->scheme_settings);
  }
  return $this->accessSchemePluginCollection;
}