You are here

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

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

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

Parameters

$value:

File

src/RegistrantsElementUtility.php, line 223

Class

RegistrantsElementUtility

Namespace

Drupal\rng

Code

public function setShowCreateEntitySubform($value) {
  $this->formState
    ->set(array_merge($this->element['#parents'], [
    'show_entity_create_form',
  ]), $value);
}