You are here

public function BackgroundImageForm::setInlineEntity in Background Image 8

Same name and namespace in other branches
  1. 2.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::setInlineEntity()
  2. 2.0.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 626

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;
}