You are here

protected function BackgroundImage::getBackgroundImageManager in Background Image 8

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

File

src/Entity/BackgroundImage.php, line 243

Class

BackgroundImage
Defines the Background Image entity.

Namespace

Drupal\background_image\Entity

Code

protected function getBackgroundImageManager() {
  if (!isset($this->backgroundImageManager)) {
    $this->backgroundImageManager = $this
      ->getContainer()
      ->get('background_image.manager');
  }
  return $this->backgroundImageManager;
}