You are here

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

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

Gets the label of the entity.

Parameters

bool $link: Whether or not to link to the target entity, if one exists.

Return value

\Drupal\Component\Render\MarkupInterface|string|null The label of the entity, or NULL if there is no label defined.

Overrides EntityInterface::label

File

src/BackgroundImageInterface.php, line 323

Class

BackgroundImageInterface
Provides an interface defining a Background Image entity.

Namespace

Drupal\background_image

Code

public function label($link = FALSE);