You are here

public function EmailConfirmation::getProperties in Email confirmer 8

Get a keyed array with all the confirmation properties.

Return value

array Array with all defined properties. Empty array if no one defined.

Overrides EmailConfirmationInterface::getProperties

File

src/Entity/EmailConfirmation.php, line 396

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function getProperties() {
  $map = [];
  if (!$this
    ->get('data')
    ->isEmpty()) {
    $map = $this
      ->get('data')
      ->first()
      ->getValue();
  }
  return $map;
}