ExtraFieldTypePluginManager.php in Entity Extra Field 8
File
src/ExtraFieldTypePluginManager.php
View source
<?php
namespace Drupal\entity_extra_field;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class ExtraFieldTypePluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, \Drupal\Core\Extension\ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/ExtraFieldType', $namespaces, $module_handler, '\\Drupal\\entity_extra_field\\ExtraFieldTypePluginInterface', '\\Drupal\\entity_extra_field\\Annotation\\ExtraFieldType');
$this
->alterInfo('extra_field_type_info');
$this
->setCacheBackend($cache_backend, 'extra_field_type');
}
public function createInstance($plugin_id, array $configuration = []) {
return parent::createInstance($plugin_id, $configuration);
}
}