public function BackgroundImageManagerInterface::getBackgroundImage in Background Image 2.0.x
Same name and namespace in other branches
- 8 src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::getBackgroundImage()
- 2.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::getBackgroundImage()
Retrieves a background image based on the current route.
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::getBackgroundImage()
- BackgroundImageManager::getBackgroundImage in src/
BackgroundImageManager.php - Retrieves a background image based on the current route.
File
- src/
BackgroundImageManagerInterface.php, line 85
Class
Namespace
Drupal\background_imageCode
public function getBackgroundImage($langcode = NULL, array $context = []);