You are here

public function EntityInlineFormInterface::setEntity in Commerce Core 8.2

Sets the entity.

Parameters

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

Return value

$this

1 method overrides EntityInlineFormInterface::setEntity()
EntityInlineFormBase::setEntity in src/Plugin/Commerce/InlineForm/EntityInlineFormBase.php
Sets the entity.

File

src/Plugin/Commerce/InlineForm/EntityInlineFormInterface.php, line 30

Class

EntityInlineFormInterface
Defines the interface for inline forms that operate on an entity.

Namespace

Drupal\commerce\Plugin\Commerce\InlineForm

Code

public function setEntity(EntityInterface $entity);