Skip to main content

Taxonomy

DrevOps\BehatSteps\Steps\Drupal\TaxonomyTrait - Source, Steps

Manage Drupal taxonomy terms with vocabulary organization.

public function taxonomyCreate(string $vocabulary, array $values): EntityStubInterface

Create a term in a vocabulary

public function taxonomyDelete(string $vocabulary, array $conditions): void

Delete the terms of a vocabulary that match conditions

public function taxonomyFindVocabulary(string $vocabulary): ?EntityStubInterface

Find a vocabulary by machine name

public function taxonomyGetVocabulary(string $vocabulary): EntityStubInterface

Get a vocabulary by machine name

public function taxonomyLoadMultiple(string $vocabulary, array $conditions = []): array

Load multiple terms with specified vocabulary and conditions

public function taxonomyVisitActionPageWithName(string $vocabulary, string $name, string $rel = 'canonical'): void

Visit a page of the term with a specified name