You are here

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

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

Retrieves the URL for the image.

Parameters

string $styleName: Optional. An image style name to use.

array $options: Optional. An array of options used to construct the URL object.

bool $parents: Flag indicating whether to use parent image if this image is not set.

Return value

string The image style URL.

1 method overrides BackgroundImageInterface::getImageUrl()
BackgroundImage::getImageUrl in src/Entity/BackgroundImage.php
Retrieves the URL for the image.

File

src/BackgroundImageInterface.php, line 171

Class

BackgroundImageInterface
Provides an interface defining a Background Image entity.

Namespace

Drupal\background_image

Code

public function getImageUrl($styleName = NULL, array $options = [], $parents = TRUE);