public function SiteSchemaManager::getTypes

Get the array of site schema types.

Return value

array An array of typed data ids (entity_type and bundle) keyed by corresponding site schema URI.

File

drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/SiteSchemaManager.php, line 81
Contains SiteSchemaManager.

Class

SiteSchemaManager

Namespace

Drupal\rdf\SiteSchema

Code

public function getTypes() {
  $cid = 'rdf:site_schema:types';
  $cache = $this->cache
    ->get($cid);
  if (!$cache) {
    $this
      ->writeCache();
    $cache = $this->cache
      ->get($cid);
  }
  return $cache->data;
}