function VocabularyDevelGenerate::deleteVocabularies

Same name in other branches
  1. 8.x-1.x devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\VocabularyDevelGenerate::deleteVocabularies()
  2. 4.x devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\VocabularyDevelGenerate::deleteVocabularies()

Deletes all vocabularies.

1 call to VocabularyDevelGenerate::deleteVocabularies()
VocabularyDevelGenerate::generateElements in devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php
Business logic relating with each DevelGenerate plugin.

File

devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php, line 95

Class

VocabularyDevelGenerate
Provides a VocabularyDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

protected function deleteVocabularies() : void {
    $vocabularies = $this->vocabularyStorage
        ->loadMultiple();
    $this->vocabularyStorage
        ->delete($vocabularies);
}