You are here

function schema_get_schema in Schema 8

Same name and namespace in other branches
  1. 7 schema.module \schema_get_schema()

Computes and returns the complete schema for all the drupal things.

8 calls to schema_get_schema()
DefaultController::schema_compare in src/Controller/DefaultController.php
DefaultController::schema_describe in src/Controller/DefaultController.php
DefaultController::schema_inspect in src/Controller/DefaultController.php
DefaultController::schema_show in src/Controller/DefaultController.php
DefaultController::schema_sql in src/Controller/DefaultController.php

... See full list

File

./schema.module, line 368
The Schema module provides functionality built on the Schema API.

Code

function schema_get_schema($rebuild = FALSE) {

  /** @var SchemaManager $manager */
  $manager = Drupal::service('plugin.manager.schema');
  $plugins = $manager
    ->createInstances();
  $complete_schema = array();

  /** @var SchemaProviderInterface $plugin */
  foreach ($plugins as $plugin) {
    $complete_schema += $plugin
      ->get($rebuild);
  }
  return $complete_schema;
}