public static function SimplePopupBlocksStorage::loadAll in Simple Popup Blocks 8.2
Same name and namespace in other branches
- 8 src/SimplePopupBlocksStorage.php \Drupal\simple_popup_blocks\SimplePopupBlocksStorage::loadAll()
Load all popup from table.
File
- src/
SimplePopupBlocksStorage.php, line 124
Class
- SimplePopupBlocksStorage
- Class SimplePopupBlocksStorage.
Namespace
Drupal\simple_popup_blocksCode
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();
}