You are here

public function UserFormatNameAlterEvent::__construct in Hook Event Dispatcher 8

UserFormatNameAlterEvent constructor.

Parameters

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

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

File

src/Event/User/UserFormatNameAlterEvent.php, line 37

Class

UserFormatNameAlterEvent
Class UserFormatNameAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\User

Code

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