You are here

protected function GathercontentMultistepFormBase::deleteStore in GatherContent 8

Helper method that removes all the keys from the store collection used for the multistep form.

Parameters

array $keys: Array of keys to delete.

1 call to GathercontentMultistepFormBase::deleteStore()
GathercontentMultistepFormBase::saveData in src/Form/GathercontentMultistepFormBase.php
Saves the data from the multistep form.

File

src/Form/GathercontentMultistepFormBase.php, line 112

Class

GathercontentMultistepFormBase
Class GathercontentMultistepFormBase.

Namespace

Drupal\gathercontent\Form

Code

protected function deleteStore(array $keys) {
  foreach ($keys as $key) {
    $this->store
      ->delete($key);
  }
}