You are here

public function TamperableComplexDataAdapter::getSource in Tamper 8

Returns the whole item as an array.

Return value

array An array of the source data.

Overrides TamperableItemInterface::getSource

File

src/Adapter/TamperableComplexDataAdapter.php, line 33

Class

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

Namespace

Drupal\tamper\Adapter

Code

public function getSource($include_computed = FALSE) {
  return $this->complexData
    ->toArray();
}