You are here

public function ProcessedContentLoader::__construct in YAML Content 8.2

ProcessedContentLoader constructor.

The parent constructor is overridden to pull in the content processor plugin manager.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service to manage dynamic entity operations.

\Drupal\Component\Serialization\SerializationInterface $parser: The content parser to use for loading content from content files.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: An event dispatcher service to publish events throughout the process.

\Drupal\Component\Plugin\PluginManagerInterface $processorPluginManager: The plugin manager to use for loading content processor plugins.

Overrides ContentLoaderBase::__construct

File

src/ContentLoader/ProcessedContentLoader.php, line 42

Class

ProcessedContentLoader
A ContentLoader supporting processing of content through plugins.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, SerializationInterface $parser, EventDispatcherInterface $dispatcher, PluginManagerInterface $processorPluginManager) {
  parent::__construct($entityTypeManager, $parser, $dispatcher);
  $this->processorPluginManager = $processorPluginManager;
}