You are here

public function TamperItem::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/TamperItem.php, line 22

Class

TamperItem
Defines a single tamper item class.

Namespace

Drupal\tamper

Code

public function getSourceProperty($property) {
  return isset($this->{$property}) ? $this->{$property} : NULL;
}