public function BackgroundImageManagerInterface::getViewBackgroundImage in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::getViewBackgroundImage()
- 2.0.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::getViewBackgroundImage()
Retrieves the bundle info for a given entity type.
Parameters
\Drupal\views\ViewEntityInterface $view: A ViewEntityInterface object.
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::getViewBackgroundImage()
- BackgroundImageManager::getViewBackgroundImage in src/
BackgroundImageManager.php - Retrieves the bundle info for a given entity type.
File
- src/
BackgroundImageManagerInterface.php, line 310
Class
Namespace
Drupal\background_imageCode
public function getViewBackgroundImage(ViewEntityInterface $view, $langcode = NULL, array $context = []);