You are here

public function GeocoderFieldPluginManager::__construct in Geocoder 8.3

Same name and namespace in other branches
  1. 8.2 modules/geocoder_field/src/GeocoderFieldPluginManager.php \Drupal\geocoder_field\GeocoderFieldPluginManager::__construct()

Constructs a new geocoder field plugin manager.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations,.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\geocoder_field\PreprocessorPluginManager $preprocessor_plugin_manager: The geocoder field preprocessor plugin manager service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

Overrides DefaultPluginManager::__construct

File

modules/geocoder_field/src/GeocoderFieldPluginManager.php, line 48

Class

GeocoderFieldPluginManager
The Geocoder Field Plugin manager.

Namespace

Drupal\geocoder_field

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, PreprocessorPluginManager $preprocessor_plugin_manager, EntityFieldManagerInterface $entity_field_manager) {
  parent::__construct('Plugin/Geocoder/Field', $namespaces, $module_handler, GeocoderFieldPluginInterface::class, GeocoderField::class);
  $this
    ->alterInfo('geocode_field_info');
  $this
    ->setCacheBackend($cache_backend, 'geocode_field_plugins');
  $this->preprocessorPluginManager = $preprocessor_plugin_manager;
  $this->entityFieldManager = $entity_field_manager;
}