You are here

public function LinkManager::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/hal/src/LinkManager/LinkManager.php \Drupal\hal\LinkManager\LinkManager::__construct()

Constructor.

Parameters

\Drupal\hal\LinkManager\TypeLinkManagerInterface $type_link_manager: Manager for handling bundle URIs.

\Drupal\hal\LinkManager\RelationLinkManagerInterface $relation_link_manager: Manager for handling bundle URIs.

File

core/modules/hal/src/LinkManager/LinkManager.php, line 29

Class

LinkManager

Namespace

Drupal\hal\LinkManager

Code

public function __construct(TypeLinkManagerInterface $type_link_manager, RelationLinkManagerInterface $relation_link_manager) {
  $this->typeLinkManager = $type_link_manager;
  $this->relationLinkManager = $relation_link_manager;
}