You are here

public function ExtraFieldPlusFormManager::__construct in Extra Field Settings Provider 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ExtraFieldPlusFormManager.php \Drupal\extra_field_plus\Plugin\ExtraFieldPlusFormManager::__construct()

Constructor for ExtraFieldPlusFormManager objects.

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 to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

src/Plugin/ExtraFieldPlusFormManager.php, line 26

Class

ExtraFieldPlusFormManager
Manages Extra Field Plus plugins settings forms.

Namespace

Drupal\extra_field_plus\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/ExtraField/Display', $namespaces, $module_handler, 'Drupal\\extra_field_plus\\Plugin\\ExtraFieldPlusDisplayInterface', 'Drupal\\extra_field\\Annotation\\ExtraFieldDisplay');
  $this
    ->alterInfo('extra_field_display_info');
  $this
    ->setCacheBackend($cache_backend, 'extra_field_display_plugins');
}