function VocabularyDevelGenerate::deleteVocabularies

Same name in other branches
  1. 5.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 111

Class

VocabularyDevelGenerate
Provides a VocabularyDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

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