You are here

public function DsFieldInterface::entity in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 src/Plugin/DsField/DsFieldInterface.php \Drupal\ds\Plugin\DsField\DsFieldInterface::entity()
  2. 8.3 src/Plugin/DsField/DsFieldInterface.php \Drupal\ds\Plugin\DsField\DsFieldInterface::entity()

Gets the current entity.

Return value

\Drupal\Core\Entity\EntityInterface The current entity.

1 method overrides DsFieldInterface::entity()
DsFieldBase::entity in src/Plugin/DsField/DsFieldBase.php
Gets the current entity.

File

src/Plugin/DsField/DsFieldInterface.php, line 54

Class

DsFieldInterface
Interface for DS plugins.

Namespace

Drupal\ds\Plugin\DsField

Code

public function entity();