You are here

public function PrimitiveBase::getValue in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/TypedData/PrimitiveBase.php \Drupal\Core\TypedData\PrimitiveBase::getValue()
  2. 9 core/lib/Drupal/Core/TypedData/PrimitiveBase.php \Drupal\Core\TypedData\PrimitiveBase::getValue()

Gets the data value.

Return value

mixed The data value.

Overrides TypedData::getValue

File

core/lib/Drupal/Core/TypedData/PrimitiveBase.php, line 20

Class

PrimitiveBase
Base class for primitive data types.

Namespace

Drupal\Core\TypedData

Code

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