You are here

public function ConfigDataEvent::setData in Acquia Content Hub 8.2

Set the data for serializing the entity.

Event subscribers to this event should be mindful to use the NestedArray::mergeDeepArray() method to merge data together and not overwrite other event subscriber's data.

Parameters

array $data: Data to set.

File

src/Event/ConfigDataEvent.php, line 67

Class

ConfigDataEvent
Event for configuration data.

Namespace

Drupal\acquia_contenthub\Event

Code

public function setData(array $data) : void {
  $this->data = $data;
}