public function UrlAliasFixtures::dropTables in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Path/UrlAliasFixtures.php \Drupal\system\Tests\Path\UrlAliasFixtures::dropTables()
Drop the tables used for the sample data.
Parameters
\Drupal\Core\Database\Connection $connection: The connection to use to drop the tables.
File
- core/
modules/ system/ src/ Tests/ Path/ UrlAliasFixtures.php, line 39 - Contains \Drupal\system\Tests\Path\UrlAliasFixtures.
Class
- UrlAliasFixtures
- Utility methods to generate sample data, database configuration, etc.
Namespace
Drupal\system\Tests\PathCode
public function dropTables(Connection $connection) {
$tables = $this
->tableDefinition();
$schema = $connection
->schema();
foreach ($tables as $name => $table) {
$schema
->dropTable($name);
}
}