You are here

public function SampleDataSet::set in YAML Content 8.2

Sets sample data for the given type.

Parameters

string $type: The type of sample data to set.

string|array $value: The sample data.

File

modules/sample_data/src/SampleDataSet.php, line 50

Class

SampleDataSet
Provides methods for retrieving sample data to be used in demo content.

Namespace

Drupal\sample_data

Code

public function set($type, $value) {
  $this->data[$type] = (array) $value;
}