You are here

protected function FieldTemplateProcessor::getEntity in UI Patterns 8

Get field parent entity.

Return value

\Drupal\Core\Entity\ContentEntityBase Parent entity.

File

modules/ui_patterns_ds/src/FieldTemplateProcessor.php, line 74

Class

FieldTemplateProcessor
Class FieldTemplateProcessor.

Namespace

Drupal\ui_patterns_ds

Code

protected function getEntity() {
  return $this->variables['element']['#object'];
}