You are here

public function TamperableComplexDataAdapter::getSourceProperty in Tamper 8

Retrieves a source property.

Parameters

string $property: A property on the source.

Return value

mixed|null The found returned property or NULL if not found.

Overrides TamperableItemInterface::getSourceProperty

File

src/Adapter/TamperableComplexDataAdapter.php, line 47

Class

TamperableComplexDataAdapter
Provides an adapter to use complex typed data as a tamperable item.

Namespace

Drupal\tamper\Adapter

Code

public function getSourceProperty($property) {
  return $this->complexData
    ->get($property);
}