You are here

public function BackgroundImageManagerInterface::getGlobalBackgroundImage in Background Image 8

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

Retrieves a fallback or "global" background image for the entire site.

Parameters

string $langcode: (optional) The language of the current context. Defaults to the current content language.

array $context: (optional) An associative array of arbitrary data that can be useful to determine the proper fallback sequence.

Return value

\Drupal\background_image\BackgroundImageInterface|null A background image entity, if one exists.

1 method overrides BackgroundImageManagerInterface::getGlobalBackgroundImage()
BackgroundImageManager::getGlobalBackgroundImage in src/BackgroundImageManager.php
Retrieves a fallback or "global" background image for the entire site.

File

src/BackgroundImageManagerInterface.php, line 262

Class

BackgroundImageManagerInterface

Namespace

Drupal\background_image

Code

public function getGlobalBackgroundImage($langcode = NULL, array $context = []);