public function OperationData::__construct in Drupal 8
Same name and namespace in other branches
- 9 composer/Plugin/Scaffold/Operations/OperationData.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationData::__construct()
OperationData constructor.
Parameters
mixed $data: The raw data array to wrap.
File
- composer/
Plugin/ Scaffold/ Operations/ OperationData.php, line 40
Class
- OperationData
- Holds parameter data for operation objects during operation creation only.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public function __construct($destination, $data) {
$this->destination = $destination;
$this->data = $this
->normalizeScaffoldMetadata($destination, $data);
}