public function DsFieldBase::entity in Display Suite 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/DsField/DsFieldBase.php \Drupal\ds\Plugin\DsField\DsFieldBase::entity()
- 8.2 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
10 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.
- DynamicTwigField::build in src/
Plugin/ DsField/ DynamicTwigField.php - Renders a field.
File
- src/
Plugin/ DsField/ DsFieldBase.php, line 113
Class
- DsFieldBase
- Base class for all the ds plugins.
Namespace
Drupal\ds\Plugin\DsFieldCode
public function entity() {
return $this->configuration['entity'];
}