function StubSchema::dropField

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::dropField()

Drop a field.

Parameters

string $table: The table to be altered.

string $field: The field to be dropped.

Return value

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

Overrides Schema::dropField

File

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

Class

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

Namespace

Drupal\Tests\Core\Database\Stub

Code

public function dropField($table, $field) : bool {
  return TRUE;
}

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