protected function VocabularyDevelGenerate::deleteVocabularies in Devel 4.x
Same name and namespace in other branches
- 8.3 devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\VocabularyDevelGenerate::deleteVocabularies()
- 8 devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\VocabularyDevelGenerate::deleteVocabularies()
- 8.2 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\DevelGenerateCode
protected function deleteVocabularies() {
$vocabularies = $this->vocabularyStorage
->loadMultiple();
$this->vocabularyStorage
->delete($vocabularies);
}