class TypeLinkManager in Default Content 8
Creates a type link manager that references drupal.org as the domain.
Hierarchy
- class \Drupal\hal\LinkManager\LinkManagerBase
- class \Drupal\hal\LinkManager\TypeLinkManager implements TypeLinkManagerInterface uses DeprecatedServicePropertyTrait
- class \Drupal\rest\LinkManager\TypeLinkManager implements TypeLinkManagerInterface
- class \Drupal\defaultcontent\LinkManager\TypeLinkManager
- class \Drupal\rest\LinkManager\TypeLinkManager implements TypeLinkManagerInterface
- class \Drupal\hal\LinkManager\TypeLinkManager implements TypeLinkManagerInterface uses DeprecatedServicePropertyTrait
Expanded class hierarchy of TypeLinkManager
File
- src/
LinkManager/ TypeLinkManager.php, line 15 - Contains \Drupal\defaultcontent\LinkManager\TypeLinkManager.
Namespace
Drupal\defaultcontent\LinkManagerView source
class TypeLinkManager extends RestTypeLinkManager {
/**
* {@inheritdoc}
*/
public function getTypeUri($entity_type, $bundle, $context = array()) {
// Make the base path refer to drupal.org.
return "http://drupal.org/rest/type/{$entity_type}/{$bundle}";
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeprecatedServicePropertyTrait:: |
public | function | Allows to access deprecated/removed properties. | |
LinkManagerBase:: |
protected | property | Config factory service. | |
LinkManagerBase:: |
protected | property | Link domain used for type links URIs. | |
LinkManagerBase:: |
protected | property | The request stack. | |
LinkManagerBase:: |
protected | function | Gets the link domain. | |
LinkManagerBase:: |
public | function | ||
TypeLinkManager:: |
protected | property | The bundle info service. | |
TypeLinkManager:: |
protected | property | Injected cache backend. | |
TypeLinkManager:: |
protected | property | ||
TypeLinkManager:: |
protected | property | The entity type manager. | |
TypeLinkManager:: |
protected | property | Module handler service. | |
TypeLinkManager:: |
public | function |
Get a bundle's Typed Data IDs based on a URI. Overrides TypeLinkManagerInterface:: |
|
TypeLinkManager:: |
protected | function | Get the array of type links. | |
TypeLinkManager:: |
public | function |
Gets the URI that corresponds to a bundle. Overrides TypeLinkManager:: |
|
TypeLinkManager:: |
protected | function | Writes the cache of type links. | |
TypeLinkManager:: |
public | function | Constructor. |