You are here

protected function FeaturesUIController::domEncode in Features 8.3

Same name and namespace in other branches
  1. 8.4 modules/features_ui/src/Controller/FeaturesUIController.php \Drupal\features_ui\Controller\FeaturesUIController::domEncode()

Encodes a given key.

Parameters

string $key: The key to encode.

Return value

string The encoded key.

File

modules/features_ui/src/Controller/FeaturesUIController.php, line 156

Class

FeaturesUIController
Returns ajax responses for the Features UI.

Namespace

Drupal\features_ui\Controller

Code

protected function domEncode($key) {
  $replacements = $this
    ->domEncodeMap();
  return strtr($key, $replacements);
}