TypeLinkManager
class TypeLinkManager extends LinkManagerBase implements TypeLinkManagerInterface (View source)
Traits
Provides a standard way to announce deprecated properties.
Properties
| protected string | $linkDomain | Link domain used for type links URIs. |
from LinkManagerBase |
| protected ConfigFactoryInterface | $configFactory | Config factory service. |
from LinkManagerBase |
| protected RequestStack | $requestStack | The request stack. |
from LinkManagerBase |
| protected | $deprecatedProperties | {@inheritdoc} | |
| protected CacheBackendInterface | $cache | Injected cache backend. |
|
| protected ModuleHandlerInterface | $moduleHandler | Module handler service. |
|
| protected EntityTypeBundleInfoInterface | $bundleInfoService | The bundle info service. |
|
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
Methods
Constructor.
Gets the URI that corresponds to a bundle.
Get a bundle's Typed Data IDs based on a URI.
Get the array of type links.
Writes the cache of type links.
Details
setLinkDomain($domain)
{@inheritdoc}
protected string
getLinkDomain(array $context = [])
Gets the link domain.
__get($name)
Allows to access deprecated/removed properties.
This method must be public.
__construct(CacheBackendInterface $cache, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, RequestStack $request_stack, EntityTypeBundleInfoInterface $bundle_info_service, EntityTypeManagerInterface $entity_type_manager = NULL)
Constructor.
string
getTypeUri($entity_type, $bundle, array $context = [])
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.
array|bool
getTypeInternalIds(string $type_uri, array $context = [])
Get a bundle's Typed Data IDs based on a URI.
protected array
getTypes(array $context = [])
Get the array of type links.
protected array
writeCache(array $context = [])
Writes the cache of type links.