public static function EmptyPageController::emptyPageGetCallbacks in Empty Page 8
Get all Empty Page callbacks.
Return value
callbacks An Array of Callbacks.
2 calls to EmptyPageController::emptyPageGetCallbacks()
- EmptyPageController::emptyPageList in src/
Controller/ EmptyPageController.php - List out the pages created via empty page.
- EmptyPages::routes in src/
Routing/ EmptyPages.php
File
- src/
Controller/ EmptyPageController.php, line 61
Class
- EmptyPageController
- Manage empty pages.
Namespace
Drupal\empty_page\ControllerCode
public static function emptyPageGetCallbacks() {
$settings = \Drupal::configFactory()
->get('empty_page.settings')
->getRawData();
$results = [];
foreach ($settings as $key => $val) {
if (substr($key, 0, 9) == 'callback_') {
$results[$val['cid']] = $val;
}
}
return $results;
}