public function StorageBase::setMultiple in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/KeyValueStore/StorageBase.php \Drupal\Core\KeyValueStore\StorageBase::setMultiple()
- 9 core/lib/Drupal/Core/KeyValueStore/StorageBase.php \Drupal\Core\KeyValueStore\StorageBase::setMultiple()
File
- core/
lib/ Drupal/ Core/ KeyValueStore/ StorageBase.php, line 42
Class
- StorageBase
- Provides a base class for key/value storage implementations.
Namespace
Drupal\Core\KeyValueStoreCode
public function setMultiple(array $data) {
foreach ($data as $key => $value) {
$this
->set($key, $value);
}
}