public static function BackgroundImageFormTrait::getBackgroundImageManager in Background Image 2.0.x
Same name and namespace in other branches
- 8 src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::getBackgroundImageManager()
- 2.x src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::getBackgroundImageManager()
Retrieves the Background Image Manager service.
Return value
\Drupal\background_image\BackgroundImageManagerInterface
File
- src/
BackgroundImageFormTrait.php, line 332
Class
- BackgroundImageFormTrait
- Trait BackgroundImageFormTrait.
Namespace
Drupal\background_imageCode
public static function getBackgroundImageManager() {
if (!isset(self::$backgroundImageManager)) {
self::$backgroundImageManager = \Drupal::service('background_image.manager');
}
return self::$backgroundImageManager;
}