You are here

public function TamperableComplexDataAdapter::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/Adapter/TamperableComplexDataAdapter.php, line 40

Class

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

Namespace

Drupal\tamper\Adapter

Code

public function setSourceProperty($property, $data) {
  $this->complexData
    ->set($property, $data);
}