You are here

public function Registration::setConfirmed in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/Registration.php \Drupal\rng\Entity\Registration::setConfirmed()

Set the registration to confirmed (or unconfirmed).

Parameters

bool $confirmed: Whether to set confirmed or unconfirmed.

Return value

\Drupal\rng\Entity\RegistrationInterface Returns registration for chaining.

Overrides RegistrationInterface::setConfirmed

File

src/Entity/Registration.php, line 150

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function setConfirmed($confirmed) {
  $this
    ->set('status', (bool) $confirmed);
  return $this;
}