You are here

public function BackgroundImageInterface::getTargetView in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/BackgroundImageInterface.php \Drupal\background_image\BackgroundImageInterface::getTargetView()
  2. 2.x src/BackgroundImageInterface.php \Drupal\background_image\BackgroundImageInterface::getTargetView()

Retrieves the target entity view, if the type is supported and exists.

Parameters

int $type: The type. Defaults to the currently set type.

string $target: A target identifier split by a colon (:) where the view identifier is on the left and the page display identifier to load is on the right. Defaults to the currently set target.

Return value

\Drupal\views\ViewEntityInterface|null The target View object or NULL if not a valid target.

1 method overrides BackgroundImageInterface::getTargetView()
BackgroundImage::getTargetView in src/Entity/BackgroundImage.php
Retrieves the target entity view, if the type is supported and exists.

File

src/BackgroundImageInterface.php, line 270

Class

BackgroundImageInterface
Provides an interface defining a Background Image entity.

Namespace

Drupal\background_image

Code

public function getTargetView($type = NULL, $target = NULL);