You are here

public function BackgroundImageForm::setInlineEntity in Background Image 2.0.x

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

Sets the inline entity.

Parameters

\Drupal\Core\Entity\EntityInterface $inline_entity: The inline entity.

Return value

self

File

src/Form/BackgroundImageForm.php, line 628

Class

BackgroundImageForm

Namespace

Drupal\background_image\Form

Code

public function setInlineEntity($inline_entity = NULL) {
  $this->inlineEntity = $inline_entity instanceof EntityInterface ? $inline_entity : NULL;
  return $this;
}