interface LinkManagerInterface

Same name in other branches
  1. 8.9.x core/modules/rest/src/LinkManager/LinkManagerInterface.php \Drupal\rest\LinkManager\LinkManagerInterface
  2. 8.9.x core/modules/hal/src/LinkManager/LinkManagerInterface.php \Drupal\hal\LinkManager\LinkManagerInterface

Interface implemented by link managers.

There are no explicit methods on the manager interface. Instead link managers broker the interactions of the different components, and therefore must implement each component interface, which is enforced by this interface extending all of the component ones.

While a link manager may directly implement these interface methods with custom logic, it is expected to be more common for plugin managers to proxy the method invocations to the respective components.

Hierarchy

  • interface \Drupal\hal\LinkManager\LinkManagerInterface extends \Drupal\hal\LinkManager\TypeLinkManagerInterface \Drupal\hal\LinkManager\RelationLinkManagerInterface

Expanded class hierarchy of LinkManagerInterface

All classes that implement LinkManagerInterface

3 files declare their use of LinkManagerInterface
ContentEntityNormalizer.php in core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
EntityReferenceItemNormalizer.php in core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
FileEntityNormalizer.php in core/modules/hal/src/Normalizer/FileEntityNormalizer.php

File

core/modules/hal/src/LinkManager/LinkManagerInterface.php, line 17

Namespace

Drupal\hal\LinkManager
View source
interface LinkManagerInterface extends TypeLinkManagerInterface, RelationLinkManagerInterface {

}

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