else { $base_path = '';
} $path =
$definition->
getPath();
$path = !
empty($path) ?
$base_path . '/' .
$path :
$base_path;
$definition->
setPath($path);
// Add the base path to the icon path.
if ($icon_path =
$definition->
getIconPath()) { $definition->
setIconPath($path . '/' .
$icon_path);
} // Add a dependency on the provider of the library.
if ($library =
$definition->
getLibrary()) { $config_dependencies =
$definition->
getConfigDependencies();
[$library_provider] =
explode('/',
$library, 2
);
if ($this->moduleHandler->
moduleExists($library_provider)) { $config_dependencies['module'
][] =
$library_provider;
} elseif ($this->themeHandler->
themeExists($library_provider)) { $config_dependencies['theme'
][] =
$library_provider;
}