public function SimplePopupBlocksController::delete in Simple Popup Blocks 8.2
Same name and namespace in other branches
- 8 src/Controller/SimplePopupBlocksController.php \Drupal\simple_popup_blocks\Controller\SimplePopupBlocksController::delete()
Delete page controller.
1 string reference to 'SimplePopupBlocksController::delete'
File
- src/
Controller/ SimplePopupBlocksController.php, line 149
Class
- SimplePopupBlocksController
- Controller routines for manage page routes.
Namespace
Drupal\simple_popup_blocks\ControllerCode
public function delete($uid) {
$config = \Drupal::service('config.factory')
->getEditable('simple_popup_blocks.popup_' . $uid);
$config
->delete();
return $this
->redirect('simple_popup_blocks.manage');
}