abstract protected function ModulesEnabledTrait::currentUser in Drupal 10
Gets the current user.
Return value
\Drupal\Core\Session\AccountInterface The current user.
4 calls to ModulesEnabledTrait::currentUser()
- ModulesEnabledTrait::modulesEnabledConfirmationMessage in core/
modules/ system/ src/ Form/ ModulesEnabledTrait.php - Provides a confirmation message after modules have been enabled.
- ModulesListConfirmForm::buildForm in core/
modules/ system/ src/ Form/ ModulesListConfirmForm.php - Form constructor.
- ModulesListConfirmForm::submitForm in core/
modules/ system/ src/ Form/ ModulesListConfirmForm.php - Form submission handler.
- ModulesListForm::submitForm in core/
modules/ system/ src/ Form/ ModulesListForm.php - Form submission handler.
File
- core/
modules/ system/ src/ Form/ ModulesEnabledTrait.php, line 25
Class
- ModulesEnabledTrait
- Provides helpers for enabling modules.
Namespace
Drupal\system\FormCode
protected abstract function currentUser();