public function ParagraphsConversionManager::__construct

Constructs a ParagraphsConversionManager 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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

paragraphs/src/ParagraphsConversionManager.php, line 38

Class

ParagraphsConversionManager
Plugin type manager for paragraphs type conversion plugins.

Namespace

Drupal\paragraphs

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct('Plugin/paragraphs/Conversion', $namespaces, $module_handler, 'Drupal\\paragraphs\\ParagraphsConversionInterface', 'Drupal\\paragraphs\\Annotation\\ParagraphsConversion');
  $this
    ->setCacheBackend($cache_backend, 'paragraphs_conversion_plugins');
  $this
    ->alterInfo('paragraphs_conversion_info');
  $this->entityTypeManager = $entity_type_manager;
}