public function UltimenuManager::getSkinName in Ultimenu 8
Gets the skin basename.
Parameters
string $path: The path to the CSS file.
Return value
string The skin basename.
Overrides UltimenuManagerInterface::getSkinName
File
- src/
UltimenuManager.php, line 619
Class
- UltimenuManager
- Manages Ultimenu plugin.
Namespace
Drupal\ultimenuCode
public function getSkinName($path) {
$skin_name = \Drupal::service('file_system')
->basename($path, '.css');
$skin_basename = str_replace("ultimenu--", "", $skin_name);
$skin_basename = str_replace("-", "_", $skin_basename);
return $skin_basename;
}