You are here

public function DsFieldBase::entity in Display Suite 8.2

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

Gets the current entity.

Return value

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

Overrides DsFieldInterface::entity

9 calls to DsFieldBase::entity()
BundleField::build in src/Plugin/DsField/BundleField.php
Renders a field.
CommentUser::build in src/Plugin/DsField/Comment/CommentUser.php
Renders a field.
CommentUserSignature::build in src/Plugin/DsField/Comment/CommentUserSignature.php
Renders a field.
DsFieldBase::getEntityTypeId in src/Plugin/DsField/DsFieldBase.php
Gets the current entity type.
NodeAuthor::build in src/Plugin/DsField/Node/NodeAuthor.php
Renders a field.

... See full list

File

src/Plugin/DsField/DsFieldBase.php, line 111

Class

DsFieldBase
Base class for all the ds plugins.

Namespace

Drupal\ds\Plugin\DsField

Code

public function entity() {
  return $this->configuration['entity'];
}