You are here

public function BackgroundImageInterface::associateEntity in Background Image 8

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

Associates a specific entity with the background image.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: An entity object.

bool $save: Flag indicating whether or not to save the background image entity after it has been associated with the entity.

1 method overrides BackgroundImageInterface::associateEntity()
BackgroundImage::associateEntity in src/Entity/BackgroundImage.php
Associates a specific entity with the background image.

File

src/BackgroundImageInterface.php, line 110

Class

BackgroundImageInterface
Provides an interface defining a Background Image entity.

Namespace

Drupal\background_image

Code

public function associateEntity(EntityInterface $entity = NULL, $save = TRUE);