You are here

public function FieldGroupFormatterPluginManager::__construct in Field Group 8

Same name and namespace in other branches
  1. 8.3 src/FieldGroupFormatterPluginManager.php \Drupal\field_group\FieldGroupFormatterPluginManager::__construct()

Constructs a new FieldGroupFormatterPluginManager 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\Language\LanguageManager $language_manager: The language manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

src/FieldGroupFormatterPluginManager.php, line 28

Class

FieldGroupFormatterPluginManager
Plugin type manager for all fieldgroup formatters.

Namespace

Drupal\field_group

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/field_group/FieldGroupFormatter', $namespaces, $module_handler, 'Drupal\\field_group\\FieldGroupFormatterInterface', 'Drupal\\field_group\\Annotation\\FieldGroupFormatter');
  $this
    ->alterInfo('field_group_formatter_info');
  $this
    ->setCacheBackend($cache_backend, 'field_group_formatter_info');
}