You are here

public function BackgroundImageManager::getBaseClass in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getBaseClass()
  2. 2.0.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getBaseClass()

Retrieves the base class.

Return value

string

Overrides BackgroundImageManagerInterface::getBaseClass

File

src/BackgroundImageManager.php, line 354

Class

BackgroundImageManager

Namespace

Drupal\background_image

Code

public function getBaseClass() {
  return Html::cleanCssIdentifier(preg_replace('/^(\\.|#)/', '', $this->config
    ->get('css.base_class') ?: 'background-image'));
}