function LinkManager::__construct

Same name in other branches
  1. 8.9.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.