public function Transaction::getProperties in Transaction 8
Get a keyed array with all the transaction properties.
Return value
array Array with all defined properties. Empty array if no one defined.
Overrides TransactionInterface::getProperties
1 call to Transaction::getProperties()
- Transaction::getProperty in src/
Entity/ Transaction.php - Returns a property value.
File
- src/
Entity/ Transaction.php, line 364
Class
- Transaction
- Provides the transaction content entity.
Namespace
Drupal\transaction\EntityCode
public function getProperties() {
$properties = $this
->get('properties');
return $properties
->isEmpty() ? [] : $properties
->first()
->toArray();
}