function StubSchema::dropTable

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Database/Stub/StubSchema.php \Drupal\Tests\Core\Database\Stub\StubSchema::dropTable()

Drop a table.

Parameters

string $table: The table to be dropped.

Return value

bool TRUE if the table was successfully dropped, FALSE if there was no table by that name to begin with.

Overrides Schema::dropTable

File

core/tests/Drupal/Tests/Core/Database/Stub/StubSchema.php, line 32

Class

StubSchema
A stub of the abstract Schema class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

public function dropTable($table) : bool {
  return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.