You are here

public function InviteSender::setLabel in Invite 8

Sets the Invite type label.

Parameters

string $label: The Invite type label.

Return value

\Drupal\invite\InviteTypeInterface The called Invite type entity.

Overrides InviteTypeInterface::setLabel

File

src/Entity/InviteSender.php, line 56

Class

InviteSender
Defines the Invite sender entity.

Namespace

Drupal\invite\Entity

Code

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