FormBase::currentUser

protected FormBase::currentUser()

Gets the current user.

Return value

\Drupal\Core\Session\AccountInterface The current user.

File

core/lib/Drupal/Core/Form/FormBase.php, line 191

Class

FormBase
Provides a base class for forms.

Namespace

Drupal\Core\Form

Code

protected function currentUser() {
  return \Drupal::currentUser();
}
doc_Drupal
2016-10-29 09:15:17
Comments
Leave a Comment

Please login to continue.