public function FieldableEdgeEntityBase::toArray in Apigee Edge 8
Gets an array of all property values.
Return value
mixed[] An array of property values, keyed by property name.
Overrides EntityBase::toArray
File
- src/
Entity/ FieldableEdgeEntityBase.php, line 524
Class
- FieldableEdgeEntityBase
- Base field support for Apigee Entities without making them content entities.
Namespace
Drupal\apigee_edge\EntityCode
public function toArray() {
$values = [];
foreach ($this
->getFields() as $name => $property) {
$values[$name] = $property
->getValue();
}
return $values;
}