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
Namespace
Drupal\rest\LinkManager
Code
1 2 3 4 5 6 7 8 9 10 11 | protected function getTypes( $context = array ()) { $cid = 'rest:links:types' ; $cache = $this ->cache->get( $cid ); if (! $cache ) { $data = $this ->writeCache( $context ); } else { $data = $cache ->data; } return $data ; } |
Please login to continue.