protected function MarkdownConfig::prefixKeys in Markdown 8.2
Prefixes keys of an associative array of data.
Parameters
array $data: The data to iterate over.
Return value
array The data with prefixed keys.
File
- src/
Config/ MarkdownConfig.php, line 114
Class
- MarkdownConfig
- Markdown Config.
Namespace
Drupal\markdown\ConfigCode
protected function prefixKeys(array $data) {
$prefixed = [];
foreach ($data as $key => $value) {
$prefixed[$this
->prefixKey($key)] = $value;
}
return $prefixed;
}