You are here

public function BackgroundImageManager::getBaseClass in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getBaseClass()
  2. 2.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'));
}