public function DrushDeleteCommands::allTaxonomyVocabularyTerm in Drush Delete All 3.x
Delete selected Taxonomy Vocabulary terms.
@validate-module-enabled drush_delete
@command delete:all-taxonomy-vocabulary-term @aliases delete-all-taxonomy-vocabulary-term
Parameters
$type: The taxonomy vocabulary name
File
- src/
Commands/ DrushDeleteCommands.php, line 36
Class
- DrushDeleteCommands
- A Drush commandfile for Drush Delete All module.
Namespace
Drupal\drush_delete\CommandsCode
public function allTaxonomyVocabularyTerm($type) {
$this
->output()
->writeln(\Drupal::service('drush_delete.entity')
->deleteAllTerms($type));
}