You are here

protected static function YamlFormElementStates::getStorageKey in YAML Form 8

Get unique key used to store the number of options for an element.

Parameters

array $element: An element.

Return value

string A unique key used to store the number of options for an element.

4 calls to YamlFormElementStates::getStorageKey()
YamlFormElementStates::addConditionSubmit in src/Element/YamlFormElementStates.php
Form submission handler for adding another condition.
YamlFormElementStates::addStateSubmit in src/Element/YamlFormElementStates.php
Form submission handler for adding another state.
YamlFormElementStates::processYamlFormStates in src/Element/YamlFormElementStates.php
Expand an email confirm field into two HTML5 email elements.
YamlFormElementStates::removeRowSubmit in src/Element/YamlFormElementStates.php
Form submission handler for removing a state or condition.

File

src/Element/YamlFormElementStates.php, line 500

Class

YamlFormElementStates
Provides a form element to edit an element's #states.

Namespace

Drupal\yamlform\Element

Code

protected static function getStorageKey(array $element, $name) {
  return 'yamlform_states__' . $element['#name'] . '__' . $name;
}