You are here

public function ProtectedPagesStorage::updateProtectedPage in Protected Pages 8

Updates data into protected pages table.

Parameters

array $page_data: An array containing all values.

int $pid: The protected page id.

File

src/ProtectedPagesStorage.php, line 55

Class

ProtectedPagesStorage
Defines the protected page storage service.

Namespace

Drupal\protected_pages

Code

public function updateProtectedPage(array $page_data, $pid) {
  $this->connection
    ->update('protected_pages')
    ->fields($page_data)
    ->condition('pid', $pid)
    ->execute();
}