public static function Zone::getElementState in Address 8
Gets the element state.
Parameters
array $parents: The element parents.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The element state.
3 calls to Zone::getElementState()
- Zone::addTerritorySubmit in src/
Element/ Zone.php - Submit callback for adding a new territory.
- Zone::processZone in src/
Element/ Zone.php - Processes the zone form element.
- Zone::removeTerritorySubmit in src/
Element/ Zone.php - Submit callback for removing a territory.
File
- src/
Element/ Zone.php, line 258
Class
- Zone
- Provides a zone form element.
Namespace
Drupal\address\ElementCode
public static function getElementState(array $parents, FormStateInterface $form_state) {
$parents = array_merge([
'element_state',
'#parents',
], $parents);
return NestedArray::getValue($form_state
->getStorage(), $parents);
}