You are here

public function InviteType::setType in Invite 8

Sets the Invite type type.

Parameters

string $type: The Invite type type.

Return value

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

Overrides InviteTypeInterface::setType

File

src/Entity/InviteType.php, line 107

Class

InviteType
Defines the Invite type entity.

Namespace

Drupal\invite\Entity

Code

public function setType($type) {
  $this
    ->set('id', $type);
  return $this;
}