You are here

public function WorkflowRepository::delete in Forms Steps 8

Delete an entry from the database.

Parameters

array $entry: An array containing at least the person identifier 'pid' element of the entry to delete.

See also

Drupal\Core\Database\Connection::delete()

File

src/Repository/WorkflowRepository.php, line 118

Class

WorkflowRepository
Class WorkflowRepository.

Namespace

Drupal\forms_steps\Repository

Code

public function delete(array $entry) {
  $this->connection
    ->delete(self::FORMS_STEPS_WORKFLOW_DB)
    ->condition('id', $entry['id'])
    ->execute();
}