You are here

public function InviteSender::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/InviteSender.php, line 71

Class

InviteSender
Defines the Invite sender entity.

Namespace

Drupal\invite\Entity

Code

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