You are here

public function ExtraFieldDisplayInterface::setEntity in Extra Field 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ExtraFieldDisplayInterface.php \Drupal\extra_field\Plugin\ExtraFieldDisplayInterface::setEntity()

Stores the field's parent entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity that hosts the field.

1 method overrides ExtraFieldDisplayInterface::setEntity()
ExtraFieldDisplayBase::setEntity in src/Plugin/ExtraFieldDisplayBase.php
Stores the field's parent entity.

File

src/Plugin/ExtraFieldDisplayInterface.php, line 31

Class

ExtraFieldDisplayInterface
Defines an interface for Extra Field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function setEntity(ContentEntityInterface $entity);