function StubSchema::indexExists
Checks if an index exists in the given table.
Parameters
string $table: The name of the table in drupal (no prefixing).
string $name: The name of the index in drupal (no prefixing).
Return value
bool TRUE if the given index exists, otherwise FALSE.
Overrides Schema::indexExists
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ StubSchema.php, line 52
Class
- StubSchema
- A stub of the abstract Schema class for testing purposes.
Namespace
Drupal\Tests\Core\Database\StubCode
public function indexExists($table, $name) {
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.