You are here

public function Transaction::getProperty in Transaction 8

Returns a property value.

Parameters

string $key: Property key to get.

Return value

string The value of the given key, NULL if not set.

Overrides TransactionInterface::getProperty

1 call to Transaction::getProperty()
Transaction::postSave in src/Entity/Transaction.php
Acts on a saved entity before the insert or update hook is invoked.

File

src/Entity/Transaction.php, line 337

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

public function getProperty($key) {
  $properties = $this
    ->getProperties();
  return isset($properties[$key]) ? $properties[$key] : NULL;
}