You are here

protected static function WebformElementStates::getStorageKey in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformElementStates.php \Drupal\webform\Element\WebformElementStates::getStorageKey()

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

Parameters

array $element: An element.

string $name: The name.

Return value

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

5 calls to WebformElementStates::getStorageKey()
WebformElementStates::addConditionSubmit in src/Element/WebformElementStates.php
Form submission handler for adding another condition.
WebformElementStates::addStateSubmit in src/Element/WebformElementStates.php
Form submission handler for adding another state.
WebformElementStates::editSourceSubmit in src/Element/WebformElementStates.php
Form submission handler for editing source.
WebformElementStates::processWebformStates in src/Element/WebformElementStates.php
Expand an email confirm field into two HTML5 email elements.
WebformElementStates::removeRowSubmit in src/Element/WebformElementStates.php
Form submission handler for removing a state or condition.

File

src/Element/WebformElementStates.php, line 758

Class

WebformElementStates
Provides a webform element to edit an element's #states.

Namespace

Drupal\webform\Element

Code

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