You are here

public function DsFieldTemplateInterface::setEntity in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/DsFieldTemplate/DsFieldTemplateInterface.php \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateInterface::setEntity()
  2. 8.3 src/Plugin/DsFieldTemplate/DsFieldTemplateInterface.php \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateInterface::setEntity()

Sets the entity this layout belong too.

Parameters

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

1 method overrides DsFieldTemplateInterface::setEntity()
DsFieldTemplateBase::setEntity in src/Plugin/DsFieldTemplate/DsFieldTemplateBase.php
Sets the entity this layout belong too.

File

src/Plugin/DsFieldTemplate/DsFieldTemplateInterface.php, line 34

Class

DsFieldTemplateInterface
Defines a common interface for all ds field template plugins.

Namespace

Drupal\ds\Plugin\DsFieldTemplate

Code

public function setEntity(EntityInterface $entity);