You are here

public function RegistrantsElementUtility::getWhitelistExisting in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::getWhitelistExisting()
  2. 3.x src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::getWhitelistExisting()

Gets identities which should skip the existing validation check.

Return value

array An array of identities to skip existing check.

1 call to RegistrantsElementUtility::getWhitelistExisting()
RegistrantsElementUtility::addWhitelistExisting in src/RegistrantsElementUtility.php
Whitelist an existing identity from re-validation.

File

src/RegistrantsElementUtility.php, line 126

Class

RegistrantsElementUtility

Namespace

Drupal\rng

Code

public function getWhitelistExisting() {
  return $this->formState
    ->get(array_merge($this->element['#parents'], [
    'whitelist_existing',
  ])) ?: [];
}