You are here

public function AcceptanceMethodPluginManager::__construct in Entity Legal 8

Constructs a FormatterPluginManager object.

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: Cache backend instance to use.

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

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The 'field type' plugin manager.

Overrides DefaultPluginManager::__construct

File

src/Plugin/AcceptanceMethodPluginManager.php, line 47
Contains \Drupal\entity_legal\Plugin\AcceptanceMethodPluginManager.

Class

AcceptanceMethodPluginManager
Plugin type manager for acceptance methods.

Namespace

Drupal\entity_legal\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/EntityLegal/AcceptanceMethod', $namespaces, $module_handler, 'Drupal\\entity_legal\\AcceptanceMethod\\AcceptanceMethodInterface', 'Drupal\\entity_legal\\Annotation\\AcceptanceMethod');
  $this
    ->setCacheBackend($cache_backend, 'entity_legal_acceptance_method_plugins');

  //    $this->alterInfo('field_formatter_info');
  //    $this->fieldTypeManager = $field_type_manager;
}