You are here

class TypeLinkManager in Default Content 8

Creates a type link manager that references drupal.org as the domain.

Hierarchy

Expanded class hierarchy of TypeLinkManager

File

src/LinkManager/TypeLinkManager.php, line 15
Contains \Drupal\defaultcontent\LinkManager\TypeLinkManager.

Namespace

Drupal\defaultcontent\LinkManager
View 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

Namesort descending Modifiers Type Description Overrides
DeprecatedServicePropertyTrait::__get public function Allows to access deprecated/removed properties.
LinkManagerBase::$configFactory protected property Config factory service.
LinkManagerBase::$linkDomain protected property Link domain used for type links URIs.
LinkManagerBase::$requestStack protected property The request stack.
LinkManagerBase::getLinkDomain protected function Gets the link domain.
LinkManagerBase::setLinkDomain public function
TypeLinkManager::$bundleInfoService protected property The bundle info service.
TypeLinkManager::$cache protected property Injected cache backend.
TypeLinkManager::$deprecatedProperties protected property
TypeLinkManager::$entityTypeManager protected property The entity type manager.
TypeLinkManager::$moduleHandler protected property Module handler service.
TypeLinkManager::getTypeInternalIds public function Get a bundle's Typed Data IDs based on a URI. Overrides TypeLinkManagerInterface::getTypeInternalIds
TypeLinkManager::getTypes protected function Get the array of type links.
TypeLinkManager::getTypeUri public function Gets the URI that corresponds to a bundle. Overrides TypeLinkManager::getTypeUri
TypeLinkManager::writeCache protected function Writes the cache of type links.
TypeLinkManager::__construct public function Constructor.