You are here

protected function FrontendEnvironment::getPluginCollection in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/FrontendEnvironment.php \Drupal\build_hooks\Entity\FrontendEnvironment::getPluginCollection()

Encapsulates creation of the frontend environment's LazyPluginCollection.

Return value

\Drupal\Component\Plugin\LazyPluginCollection The frontend environment's plugin collection.

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

File

src/Entity/FrontendEnvironment.php, line 145

Class

FrontendEnvironment
Defines the Frontend environment entity.

Namespace

Drupal\build_hooks\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection) {
    $this->pluginCollection = new FrontendEnvironmentPluginCollection(\Drupal::service('plugin.manager.frontend_environment'), $this->plugin, $this
      ->get('settings'), $this
      ->id());
  }
  return $this->pluginCollection;
}