You are here

public function StorageFilterInterface::filterWriteEmptyIsDelete in Config Filter 8

Same name and namespace in other branches
  1. 8.2 src/Config/StorageFilterInterface.php \Drupal\config_filter\Config\StorageFilterInterface::filterWriteEmptyIsDelete()

Let the filter decide whether not-writing data should mean delete.

Filters can return NULL for `filterWrite($name, $data)` which means to not write the data to the source storage, but it can also mean deleting it.

Parameters

string $name: The name of a configuration object to save.

Return value

bool|null True to delete at the end of a filtered write action.

File

src/Config/StorageFilterInterface.php, line 83

Class

StorageFilterInterface
Interface StorageFilterInterface.

Namespace

Drupal\config_filter\Config

Code

public function filterWriteEmptyIsDelete($name);