function Helper::formActions
Same name and namespace in other branches
- main core/themes/admin/src/Helper.php \Drupal\admin\Helper::formActions()
Set and get the form actions of the current request.
Parameters
array|null $actions: If not NULL, the given actions will be remembered for the current request so that they can be retrieved later when processing the page.
Return value
array|null If set, the previously stored actions, NULL otherwise.
4 calls to Helper::formActions()
- FormHooks::formAfterBuild in core/
themes/ admin/ src/ Hook/ FormHooks.php - Helper function to remember the form actions after form has been built.
- PreprocessHooks::menuLocalAction in core/
themes/ admin/ src/ Hook/ PreprocessHooks.php - Implements hook_preprocess_HOOK() for menu_local_action.
- PreprocessHooks::page in core/
themes/ admin/ src/ Hook/ PreprocessHooks.php - Implements hook_preprocess_HOOK() for page.
- PreprocessHooks::topBar in core/
themes/ admin/ src/ Hook/ PreprocessHooks.php - Implements hook_preprocess_HOOK() for top_bar.
File
-
core/
themes/ admin/ src/ Helper.php, line 250
Class
- Helper
- Admin helper methods.
Namespace
Drupal\adminCode
public static function formActions(?array $actions = NULL) : ?array {
static $preparedActions;
if ($actions !== NULL) {
$preparedActions = $actions;
}
return $preparedActions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.