You are here

public function UserFormatNameAlterEvent::__construct in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/user_event_dispatcher/src/Event/User/UserFormatNameAlterEvent.php \Drupal\user_event_dispatcher\Event\User\UserFormatNameAlterEvent::__construct()

UserFormatNameAlterEvent constructor.

Parameters

string|\Drupal\Component\Render\MarkupInterface $name: Name.

\Drupal\Core\Session\AccountInterface $account: Account.

File

modules/user_event_dispatcher/src/Event/User/UserFormatNameAlterEvent.php, line 36

Class

UserFormatNameAlterEvent
Class UserFormatNameAlterEvent.

Namespace

Drupal\user_event_dispatcher\Event\User

Code

public function __construct(&$name, AccountInterface $account) {
  $this->name =& $name;
  $this->account = $account;
}