public function ConfigActionsDelete::transform in Config Actions 8
Main transform to perform the deletion
Overrides ConfigActionsPluginBase::transform
File
- src/
Plugin/ ConfigActions/ ConfigActionsDelete.php, line 36
Class
- ConfigActionsDelete
- Plugin for deleting data.
Namespace
Drupal\config_actions\Plugin\ConfigActionsCode
public function transform(array $source) {
$this
->validatePath($source);
$result = ConfigActionsTransform::delete($source, $this->path, $this->prune);
// If entire result is pruned, return an empty array to cause config to
// be deleted.
return !empty($result) ? $result : [];
}