Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 8 get taxonomy terms by vocabulary name

$terms = Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([
  'vid' => 'vocabulary__machine_name'
]);
 
PREVIOUS NEXT
Tagged: #drupal #taxonomy #terms #vocabulary
ADD COMMENT
Topic
Name
2+9 =