You are here

public function AcsfVariableStorageMock::delete in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 tests/AcsfVariableStorageMock.php \AcsfVariableStorageMock::delete()

Deletes a named variable.

Parameters

string $name: The name of the variable.

Return value

int The number of deleted rows.

File

tests/AcsfVariableStorageMock.php, line 140

Class

AcsfVariableStorageMock
Mock AcsfVariableStorage class used for testing.

Code

public function delete($name) {
  $result = $this->connection
    ->delete('acsf_variables')
    ->condition('name', $name)
    ->execute();
  return $result;
}