protected function getRequireJsPathMapping()
{
$pathMappings = array();
$validatorSettings = ObjectAccess::getPropertyPath($this->settings, 'userInterface.validators');
if (is_array($validatorSettings)) {
foreach ($validatorSettings as $validatorName => $validatorConfiguration) {
if (isset($validatorConfiguration['path'])) {
$pathMappings[$validatorName] = $this->getStaticResourceWebBaseUri($validatorConfiguration['path']);
}
}
}
$editorSettings = ObjectAccess::getPropertyPath($this->settings, 'userInterface.inspector.editors');
if (is_array($editorSettings)) {
foreach ($editorSettings as $editorName => $editorConfiguration) {
if (isset($editorConfiguration['path'])) {
$pathMappings[$editorName] = $this->getStaticResourceWebBaseUri($editorConfiguration['path']);
}
}
}
$requireJsPathMappingSettings = ObjectAccess::getPropertyPath($this->settings, 'userInterface.requireJsPathMapping');
if (is_array($requireJsPathMappingSettings)) {
foreach ($requireJsPathMappingSettings as $namespace => $path) {
$pathMappings[$namespace] = $this->getStaticResourceWebBaseUri($path);
}
}
return $pathMappings;
}