public function SerialItem::getValue in Serial Field 8
Gets the data value.
Return value
mixed The data value.
Overrides Map::getValue
File
- src/
Plugin/ Field/ FieldType/ SerialItem.php, line 141
Class
- SerialItem
- Plugin implementation of the 'serial' field type.
Namespace
Drupal\serial\Plugin\Field\FieldTypeCode
public function getValue() {
// Update the values and return them.
foreach ($this->properties as $name => $property) {
$value = $property
->getValue();
// Only write NULL values if the whole map is not NULL.
if (isset($this->values) || isset($value)) {
$this->values[$name] = $value;
}
}
return $this->values;
}