You are here

public function EntityAdapter::getValue in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\EntityAdapter::getValue()

Gets the data value.

Return value

mixed The data value.

Overrides TypedData::getValue

File

core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php, line 58

Class

EntityAdapter
Defines the "entity" data type.

Namespace

Drupal\Core\Entity\Plugin\DataType

Code

public function getValue() {
  return $this->entity;
}