protected function FeaturesUIController::domEncodeMap in Features 8.4
Same name and namespace in other branches
- 8.3 modules/features_ui/src/Controller/FeaturesUIController.php \Drupal\features_ui\Controller\FeaturesUIController::domEncodeMap()
Returns encoding map for decode and encode options.
Return value
array An encoding map.
2 calls to FeaturesUIController::domEncodeMap()
- FeaturesUIController::domDecode in modules/
features_ui/ src/ Controller/ FeaturesUIController.php - Decodes a given key.
- FeaturesUIController::domEncode in modules/
features_ui/ src/ Controller/ FeaturesUIController.php - Encodes a given key.
File
- modules/
features_ui/ src/ Controller/ FeaturesUIController.php, line 181
Class
- FeaturesUIController
- Returns ajax responses for the Features UI.
Namespace
Drupal\features_ui\ControllerCode
protected function domEncodeMap() {
return [
':' => '__' . ord(':') . '__',
'/' => '__' . ord('/') . '__',
',' => '__' . ord(',') . '__',
'.' => '__' . ord('.') . '__',
'<' => '__' . ord('<') . '__',
'>' => '__' . ord('>') . '__',
'%' => '__' . ord('%') . '__',
')' => '__' . ord(')') . '__',
'(' => '__' . ord('(') . '__',
];
}