public function ContentLoaderBase::__construct in YAML Content 8.2
Constructs a ContentLoaderBase object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: An Entity Type Manager service implementation.
\Drupal\Component\Serialization\SerializationInterface $parser: A serialization parser to interpret content from content files.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: An event dispatcher service to publish events throughout the process.
2 calls to ContentLoaderBase::__construct()
- ConfigurableContentLoader::__construct in src/
ContentLoader/ ConfigurableContentLoader.php - Constructs a ContentLoaderBase object.
- ProcessedContentLoader::__construct in src/
ContentLoader/ ProcessedContentLoader.php - ProcessedContentLoader constructor.
2 methods override ContentLoaderBase::__construct()
- ConfigurableContentLoader::__construct in src/
ContentLoader/ ConfigurableContentLoader.php - Constructs a ContentLoaderBase object.
- ProcessedContentLoader::__construct in src/
ContentLoader/ ProcessedContentLoader.php - ProcessedContentLoader constructor.
File
- src/
ContentLoader/ ContentLoaderBase.php, line 82
Class
- ContentLoaderBase
- A base ContentLoader implementation to be extended by new content loaders.
Namespace
Drupal\yaml_content\ContentLoaderCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, SerializationInterface $parser, EventDispatcherInterface $dispatcher) {
$this->parser = $parser;
$this->entityTypeManager = $entityTypeManager;
$this->dispatcher = $dispatcher;
}