You are here

public function EmailConfirmation::setRealm in Email confirmer 8

Sets the realm to which this confirmation belongs.

Parameters

string $realm: The realm, tipically a module name.

Return value

\Drupal\email_confirmer\EmailConfirmationInterface The called email confirmation entity.

Overrides EmailConfirmationInterface::setRealm

File

src/Entity/EmailConfirmation.php, line 342

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function setRealm($realm) {
  $this
    ->get('realm')
    ->setValue($realm);
  return $this;
}