You are here

protected function GeocoderProvider::getPluginCollection in Geocoder 8.3

Encapsulates the creation of the action's LazyPluginCollection.

Return value

\Drupal\Component\Plugin\LazyPluginCollection The action's plugin collection.

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

File

src/Entity/GeocoderProvider.php, line 101

Class

GeocoderProvider
Defines the Geocoder provider entity type.

Namespace

Drupal\geocoder\Entity

Code

protected function getPluginCollection() : LazyPluginCollection {
  if (!$this->pluginCollection) {
    $this->pluginCollection = new GeocoderProviderPluginCollection(\Drupal::service('plugin.manager.geocoder.provider'), $this->plugin, $this->configuration);
  }
  return $this->pluginCollection;
}