Skip to main content

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'language''langcode' => $language_id ]); 

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'language' => $language_id ]); 

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'langcode' => $language_id ]); 
added 8 characters in body
Source Link
Eyal
  • 3.3k
  • 16
  • 24

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal:: entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'language' => $language_id ]); 

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal:: entityTypeManager->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'language' => $language_id ]); 

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'language' => $language_id ]); 
Source Link
Eyal
  • 3.3k
  • 16
  • 24

You can use the loadByProperties method to load all the entities that their fields correspond to certain values.

For a more advance selection you can use the entity query service.

\Drupal:: entityTypeManager->getStorage('taxonomy_term')->loadByProperties([ 'vid' => $vid, 'language' => $language_id ]);