You are here

public function RngEventType::setDefaultRegistrantType in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/RngEventType.php \Drupal\rng\Entity\RngEventType::setDefaultRegistrantType()

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 RngEventType::setDefaultRegistrantType()
RngEventType::onDependencyRemoval in src/Entity/RngEventType.php
Informs the entity that entities it depends on will be deleted.

File

src/Entity/RngEventType.php, line 354

Class

RngEventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

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