You are here

public function TamperableComplexDataAdapter::__construct in Tamper 8

Create a new instance of the adapter.

Parameters

\Drupal\Core\TypedData\ComplexDataInterface $complexData: Typed complex data object.

File

src/Adapter/TamperableComplexDataAdapter.php, line 26

Class

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

Namespace

Drupal\tamper\Adapter

Code

public function __construct(ComplexDataInterface $complexData) {
  $this->complexData = $complexData;
}