public static function YamlFormMultiple::getStorageKey in YAML Form 8
Get unique key used to store the number of items for an element.
Parameters
array $element: An element.
Return value
string A unique key used to store the number of items for an element.
4 calls to YamlFormMultiple::getStorageKey()
- YamlFormMultiple::addItemsSubmit in src/
Element/ YamlFormMultiple.php - Form submission handler for adding more items.
- YamlFormMultiple::addItemSubmit in src/
Element/ YamlFormMultiple.php - Form submission handler for adding an item.
- YamlFormMultiple::processYamlFormMultiple in src/
Element/ YamlFormMultiple.php - Process items and build multiple elements widget.
- YamlFormMultiple::removeItemSubmit in src/
Element/ YamlFormMultiple.php - Form submission handler for removing an item.
File
- src/
Element/ YamlFormMultiple.php, line 445
Class
- YamlFormMultiple
- Provides a form element to assist in creation of multiple elements.
Namespace
Drupal\yamlform\ElementCode
public static function getStorageKey(array $element, $name) {
return 'yamlform_multiple__' . $element['#name'] . '__' . $name;
}