function TextFormat::currentUser

Wraps the current user.

\Drupal\Core\Session\AccountInterface

1 call to TextFormat::currentUser()
TextFormat::processFormat in core/modules/filter/src/Element/TextFormat.php
Expands an element into a base element with text format selector attached.

File

core/modules/filter/src/Element/TextFormat.php, line 289

Class

TextFormat
Provides a text format render element.

Namespace

Drupal\filter\Element

Code

protected static function currentUser() {
  return \Drupal::currentUser();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.