You are here

public function UrlAliasFixtures::tableDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Path/UrlAliasFixtures.php \Drupal\system\Tests\Path\UrlAliasFixtures::tableDefinition()

Returns the table definition for the URL alias fixtures.

Return value

array Table definitions.

2 calls to UrlAliasFixtures::tableDefinition()
UrlAliasFixtures::createTables in core/modules/system/src/Tests/Path/UrlAliasFixtures.php
Create the tables required for the sample data.
UrlAliasFixtures::dropTables in core/modules/system/src/Tests/Path/UrlAliasFixtures.php
Drop the tables used for the sample data.

File

core/modules/system/src/Tests/Path/UrlAliasFixtures.php, line 85
Contains \Drupal\system\Tests\Path\UrlAliasFixtures.

Class

UrlAliasFixtures
Utility methods to generate sample data, database configuration, etc.

Namespace

Drupal\system\Tests\Path

Code

public function tableDefinition() {
  $tables = array();

  // Prime the drupal_get_filename() cache with the location of the system
  // module as its location is known and shouldn't change.
  // @todo Remove as part of https://www.drupal.org/node/2186491
  drupal_get_filename('module', 'system', 'core/modules/system/system.info.yml');
  module_load_install('system');
  $schema = system_schema();
  $tables['url_alias'] = $schema['url_alias'];
  $tables['key_value'] = $schema['key_value'];
  return $tables;
}