You are here

public function Event::getName in Event 8

Gets the Event name.

Return value

string Name of the Event.

Overrides EventInterface::getName

File

src/Entity/Event.php, line 136

Class

Event
Defines the Event entity.

Namespace

Drupal\event\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}