You are here

public function DefaultController::schema_show in Schema 8

1 string reference to 'DefaultController::schema_show'
schema.routing.yml in ./schema.routing.yml
schema.routing.yml

File

src/Controller/DefaultController.php, line 42
Contains \Drupal\schema\Controller\DefaultController.

Class

DefaultController
Default controller for the schema module.

Namespace

Drupal\schema\Controller

Code

public function schema_show() {
  $schema = schema_get_schema(TRUE);
  return array(
    '#type' => 'textarea',
    '#rows' => 30,
    '#value' => var_export($schema, TRUE),
    '#attributes' => array(
      'style' => 'width:100%;',
    ),
  );
}