You are here

public function RegistrantsElementUtility::getWhitelistExisting in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/RegistrantsElementUtility.php \Drupal\rng\RegistrantsElementUtility::getWhitelistExisting()
  2. 8 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 137

Class

RegistrantsElementUtility

Namespace

Drupal\rng

Code

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