You are here

public static function BackgroundImageManager::service in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::service()
  2. 2.0.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.

... See full list

File

src/BackgroundImageManager.php, line 707

Class

BackgroundImageManager

Namespace

Drupal\background_image

Code

public static function service() {
  return \Drupal::service('background_image.manager');
}