You are here

protected function FeaturesEditForm::domEncode in Features 8.3

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

Encodes a given key.

Parameters

string $key: The key to encode.

Return value

string The encoded key.

File

modules/features_ui/src/Form/FeaturesEditForm.php, line 1102

Class

FeaturesEditForm
Defines the features settings form.

Namespace

Drupal\features_ui\Form

Code

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