You are here

public function TamperItem::setSourceProperty in Tamper 8

Sets a source property.

Parameters

string $property: A property on the source.

mixed $data: The property value to set on the source.

Overrides TamperableItemInterface::setSourceProperty

File

src/TamperItem.php, line 29

Class

TamperItem
Defines a single tamper item class.

Namespace

Drupal\tamper

Code

public function setSourceProperty($property, $data) {
  $this->{$property} = $data;
  return $this;
}