You are here

public function Event::getName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Event.php \Symfony\Component\EventDispatcher\Event::getName()

Gets the event's name.

Return value

string

Deprecated

since version 2.4, to be removed in 3.0. The event name is passed to the listener call.

File

vendor/symfony/event-dispatcher/Event.php, line 102

Class

Event
Event is the base class for classes containing event data.

Namespace

Symfony\Component\EventDispatcher

Code

public function getName() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0. The event name can be received in the listener call instead.', E_USER_DEPRECATED);
  return $this->name;
}