You are here

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

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

Get form state for opening the create-an-entity sub-form.

Return value

boolean Wther the create-an-entity sub-form is open.

File

src/RegistrantsElementUtility.php, line 214

Class

RegistrantsElementUtility

Namespace

Drupal\rng

Code

public function getShowCreateEntitySubform() {
  return (bool) $this->formState
    ->get(array_merge($this->element['#parents'], [
    'show_entity_create_form',
  ]));
}