public static function BackgroundImageManager::service in Background Image 2.0.x
Same name and namespace in other branches
- 8 src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::service()
- 2.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::service()
Retrieves the service instance for this object.
Return value
self
Overrides BackgroundImageManagerInterface::service
7 calls to BackgroundImageManager::service()
- BackgroundImageBlock::build in src/
Plugin/ Block/ BackgroundImageBlock.php - Builds and returns the renderable array for this block plugin.
- BackgroundImageListBuilder::buildRow in src/
BackgroundImageListBuilder.php - Builds a row for an entity in the entity listing.
- BackgroundImageSettingsForm::buildForm in src/
Form/ BackgroundImageSettingsForm.php - Form constructor.
- BackgroundImageTextBlock::build in src/
Plugin/ Block/ BackgroundImageTextBlock.php - Builds and returns the renderable array for this block plugin.
- BackgroundImageViewBuilder::build in src/
BackgroundImageViewBuilder.php - Builds an entity's view; augments entity defaults.
File
- src/
BackgroundImageManager.php, line 707
Class
Namespace
Drupal\background_imageCode
public static function service() {
return \Drupal::service('background_image.manager');
}