public function DefaultContentManager::__construct in Default Content 8
Constructs the default content manager.
Parameters
\Symfony\Component\Serializer\Serializer $serializer: The serializer service.
\Drupal\rest\Plugin\Type\ResourcePluginManager $resource_plugin_manager: The rest resource plugin manager.
\Drupal\Core\Entity\EntityManager $entity_manager: The entity manager service.
\Drupal\rest\LinkManager\LinkManagerInterface $link_manager: The link manager service.
File
- src/
DefaultContentManager.php, line 93 - Contains \Drupal\defaultcontent\DefaultContentManager. @todo remove all references to linkmanager?
Class
- DefaultContentManager
- A service for handling import of default content. @todo throw useful exceptions
Namespace
Drupal\defaultcontentCode
public function __construct(Serializer $serializer, ResourcePluginManager $resource_plugin_manager, EntityTypeManager $entity_type_manager, LinkManagerInterface $link_manager) {
$this->serializer = $serializer;
$this->resourcePluginManager = $resource_plugin_manager;
$this->entityTypeManager = $entity_type_manager;
///$this->linkManager = $link_manager;
}