You are here

public static function SimplePopupBlocksStorage::loadAll in Simple Popup Blocks 8

Same name and namespace in other branches
  1. 8.2 src/SimplePopupBlocksStorage.php \Drupal\simple_popup_blocks\SimplePopupBlocksStorage::loadAll()

Load all popup from table.

2 calls to SimplePopupBlocksStorage::loadAll()
SimplePopupBlocksController::manage in src/Controller/SimplePopupBlocksController.php
Manage page controller method to list the data.
simple_popup_blocks_page_attachments in ./simple_popup_blocks.module
Implements hook_page_attachments().

File

src/SimplePopupBlocksStorage.php, line 124

Class

SimplePopupBlocksStorage
Class SimplePopupBlocksStorage.

Namespace

Drupal\simple_popup_blocks

Code

public static function loadAll(Connection $database) {
  $select = $database
    ->select('simple_popup_blocks', 'pb');
  $select
    ->fields('pb');

  // Return the result in object format.
  return $select
    ->execute()
    ->fetchAll();
}