public function UltimenuSkin::getName in Ultimenu 8.2
Gets the skin basename.
Parameters
string $path: The path to the CSS file.
Return value
string The skin basename.
Overrides UltimenuSkinInterface::getName
1 call to UltimenuSkin::getName()
- UltimenuSkin::libraryInfoBuild in src/
UltimenuSkin.php - Implements hook_library_info_build().
File
- src/
UltimenuSkin.php, line 121
Class
- UltimenuSkin
- Provides Ultimenu skins utility methods.
Namespace
Drupal\ultimenuCode
public function getName($path) {
$skin_name = $this->fileSystem
->basename($path, '.css');
$skin_basename = str_replace("ultimenu--", "", $skin_name);
return str_replace("-", "_", $skin_basename);
}