public static function SimplePopupBlocksStorage::delete in Simple Popup Blocks 8
Same name and namespace in other branches
- 8.2 src/SimplePopupBlocksStorage.php \Drupal\simple_popup_blocks\SimplePopupBlocksStorage::delete()
Delete popup from table.
1 call to SimplePopupBlocksStorage::delete()
- SimplePopupBlocksController::delete in src/
Controller/ SimplePopupBlocksController.php - Delete page controller.
File
- src/
SimplePopupBlocksStorage.php, line 135
Class
- SimplePopupBlocksStorage
- Class SimplePopupBlocksStorage.
Namespace
Drupal\simple_popup_blocksCode
public static function delete($pid, Connection $database) {
$select = $database
->delete('simple_popup_blocks');
$select
->condition('pid', $pid);
// Return the result in object format.
return $select
->execute();
}