TypeLinkManager::$moduleHandler

Module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/rest/src/LinkManager/TypeLinkManager.php, line 26 Class TypeLinkManager Namespace Drupal\rest\LinkManager Code protected $moduleHandler;

TypeLinkManager::getTypeInternalIds

public TypeLinkManager::getTypeInternalIds($type_uri, $context = array()) Get a bundle's Typed Data IDs based on a URI. Parameters string $type_uri: The type URI. array $context: Context from the normalizer/serializer operation. Return value array | boolean If the URI matches a bundle, returns an array containing entity_type and bundle. Otherwise, returns false. Overrides TypeLinkManagerInterface::getTypeInternalIds File core/modules/rest/src/LinkManager/TypeLinkManager.php, line 81 Class

TypeLinkManager::getTypes

protected TypeLinkManager::getTypes($context = array()) Get the array of type links. Parameters array $context: Context from the normalizer/serializer operation. Return value array An array of typed data ids (entity_type and bundle) keyed by corresponding type URI. File core/modules/rest/src/LinkManager/TypeLinkManager.php, line 99 Class TypeLinkManager Namespace Drupal\rest\LinkManager Code protected function getTypes($context = array()) { $cid = 'rest:links:types'; $cache = $t

TypeLinkManager::getTypeUri

public TypeLinkManager::getTypeUri($entity_type, $bundle, $context = array()) Gets the URI that corresponds to a bundle. When using hypermedia formats, this URI can be used to indicate which bundle the data represents. Documentation about required and optional fields can also be provided at this URI. Parameters $entity_type: The bundle's entity type. $bundle: The bundle name. array $context: (optional) Optional serializer/normalizer context. Return value string The corresponding URI for the b

TypeLinkManager::writeCache

protected TypeLinkManager::writeCache($context = array()) Writes the cache of type links. Parameters array $context: Context from the normalizer/serializer operation. Return value array An array of typed data ids (entity_type and bundle) keyed by corresponding type URI. File core/modules/rest/src/LinkManager/TypeLinkManager.php, line 121 Class TypeLinkManager Namespace Drupal\rest\LinkManager Code protected function writeCache($context = array()) { $data = array(); // Type URIs

TypeLinkManager::__construct

public TypeLinkManager::__construct(CacheBackendInterface $cache, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, RequestStack $request_stack, EntityTypeBundleInfoInterface $bundle_info_service) Constructor. Parameters \Drupal\Core\Cache\CacheBackendInterface $cache: The injected cache backend for caching type URIs. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service. \Drupal\Core\Config\ConfigFactoryInterface $config_factor

TypeLinkManagerInterface

Hierarchy interface \Drupal\rest\LinkManager\ConfigurableLinkManagerInterfaceinterface \Drupal\rest\LinkManager\TypeLinkManagerInterface File core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php, line 5 Namespace Drupal\rest\LinkManager Members Name Modifiers Type Description ConfigurableLinkManagerInterface::setLinkDomain public function Sets the link domain used in constructing link URIs. TypeLinkManagerInterface::getTypeInternalIds public function G

TypeLinkManagerInterface::getTypeInternalIds

public TypeLinkManagerInterface::getTypeInternalIds($type_uri, $context = array()) Get a bundle's Typed Data IDs based on a URI. Parameters string $type_uri: The type URI. array $context: Context from the normalizer/serializer operation. Return value array | boolean If the URI matches a bundle, returns an array containing entity_type and bundle. Otherwise, returns false. File core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php, line 38 Class TypeLinkManagerInterface Namespa

TypeLinkManagerInterface::getTypeUri

public TypeLinkManagerInterface::getTypeUri($entity_type, $bundle, $context = array()) Gets the URI that corresponds to a bundle. When using hypermedia formats, this URI can be used to indicate which bundle the data represents. Documentation about required and optional fields can also be provided at this URI. Parameters $entity_type: The bundle's entity type. $bundle: The bundle name. array $context: (optional) Optional serializer/normalizer context. Return value string The corresponding URI

UnchangingCacheableDependencyTrait

Trait to implement CacheableDependencyInterface for unchanging objects. Hierarchy trait \Drupal\Core\Cache\UnchangingCacheableDependencyTrait See also \Drupal\Core\Cache\CacheableDependencyInterface File core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php, line 10 Namespace Drupal\Core\Cache Members Name Modifiers Type Description UnchangingCacheableDependencyTrait::getCacheContexts public function The cache contexts associated with this object. Overrides