You are here

public function EmailConfirmation::isPrivate in Email confirmer 8

Returns the private status.

Return value

bool TRUE if the confirmation is marked as private, FALSE otherwise.

Overrides EmailConfirmationInterface::isPrivate

File

src/Entity/EmailConfirmation.php, line 211

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function isPrivate() {
  return $this
    ->get('private')->value == EmailConfirmationInterface::IS_PRIVATE;
}