public function ConfigSnapshotInterface::setItem in Config Snapshot 8
Returns an item from the snapshot for a given collection.
Parameters
string $collection: The configuration collection.
string $name: The name of a configuration object.
array $data: Data to set for the configuration object.
Return value
\Drupal\config_snapshot\Entity\ConfigSnapshotInterface A config snapshot object for chaining.
1 method overrides ConfigSnapshotInterface::setItem()
- ConfigSnapshot::setItem in src/
Entity/ ConfigSnapshot.php - Returns an item from the snapshot for a given collection.
File
- src/
Entity/ ConfigSnapshotInterface.php, line 81
Class
- ConfigSnapshotInterface
- Provides an interface for defining config snapshot entities.
Namespace
Drupal\config_snapshot\EntityCode
public function setItem($collection, $name, array $data);