public function RelationLinkManager::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/hal/src/LinkManager/RelationLinkManager.php \Drupal\hal\LinkManager\RelationLinkManager::__construct()
Constructor.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache of relation URIs and their associated Typed Data IDs.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
File
- core/
modules/ hal/ src/ LinkManager/ RelationLinkManager.php, line 68
Class
Namespace
Drupal\hal\LinkManagerCode
public function __construct(CacheBackendInterface $cache, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, RequestStack $request_stack, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager) {
$this->cache = $cache;
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->entityFieldManager = $entity_field_manager;
$this->configFactory = $config_factory;
$this->moduleHandler = $module_handler;
$this->requestStack = $request_stack;
}