You are here

public function Event::setName in Event 8

Sets the Event name.

Parameters

string $name: The Event name.

Return value

\Drupal\event\Entity\EventInterface The called Event entity.

Overrides EventInterface::setName

File

src/Entity/Event.php, line 143

Class

Event
Defines the Event entity.

Namespace

Drupal\event\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}