You are here

function EventType::setDefaultRegistrantType in RNG - Events and Registrations 8

Set registrant type for new registrants associated with this event type.

Parameters

string|NULL $registrant_type_id: The Registrant type used for new registrants associated with this event type.

Return value

$this Return this event type for chaining.

Overrides EventTypeInterface::setDefaultRegistrantType

1 call to EventType::setDefaultRegistrantType()
EventType::onDependencyRemoval in src/Entity/EventType.php
Informs the entity that entities it depends on will be deleted.

File

src/Entity/EventType.php, line 299

Class

EventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

function setDefaultRegistrantType($registrant_type_id) {
  $this->default_registrant = $registrant_type_id;
  return $this;
}