You are here

public function Event::getMachineName in Event 8

Gets the Event machine name.

Return value

string Name of the Event.

Overrides EventInterface::getMachineName

File

src/Entity/Event.php, line 151

Class

Event
Defines the Event entity.

Namespace

Drupal\event\Entity

Code

public function getMachineName() {
  return $this
    ->get('machine_name')->value;
}