protected function ConfigForm::getMappingKey in Akamai 8.3
Return the key of the active selection in a domain mapping.
Parameters
array $array: A settings array corresponding to a mapping with booleans against keys.
Return value
mixed The key of the first value with boolean TRUE.
1 call to ConfigForm::getMappingKey()
- ConfigForm::buildForm in src/
Form/ ConfigForm.php - Form constructor.
File
- src/
Form/ ConfigForm.php, line 413
Class
- ConfigForm
- A configuration form to interact with Akamai API settings.
Namespace
Drupal\akamai\FormCode
protected function getMappingKey(array $array) {
return key(array_filter($array));
}