TypeLinkManager.php in Default Content 8
File
src/LinkManager/TypeLinkManager.php
View source
<?php
namespace Drupal\defaultcontent\LinkManager;
use Drupal\rest\LinkManager\TypeLinkManager as RestTypeLinkManager;
class TypeLinkManager extends RestTypeLinkManager {
public function getTypeUri($entity_type, $bundle, $context = array()) {
return "http://drupal.org/rest/type/{$entity_type}/{$bundle}";
}
}
Classes
Name |
Description |
TypeLinkManager |
Creates a type link manager that references drupal.org as the domain. |