You are here

public function ProtectedPagesStorage::deleteProtectedPage in Protected Pages 8

Delete protected page from database.

Parameters

int $pid: The protected page id.

File

src/ProtectedPagesStorage.php, line 68

Class

ProtectedPagesStorage
Defines the protected page storage service.

Namespace

Drupal\protected_pages

Code

public function deleteProtectedPage($pid) {
  $this->connection
    ->delete('protected_pages')
    ->condition('pid', $pid)
    ->execute();
}