GeofieldBackendManager.php in Geofield 8
File
src/Plugin/GeofieldBackendManager.php
View source
<?php
namespace Drupal\geofield\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class GeofieldBackendManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/GeofieldBackend', $namespaces, $module_handler, 'Drupal\\geofield\\Plugin\\GeofieldBackendPluginInterface', 'Drupal\\geofield\\Annotation\\GeofieldBackend');
$this
->alterInfo('geofield');
$this
->setCacheBackend($cache_backend, 'geofield_plugins');
}
}