API page: https://api.drupal.org/api/drupal/core%21modules%21taxonomy%21taxonomy.m...

As mentioned in a comment by @StephenWard, the way to pull terms by name/vocab is to pull from taxonomy_term storage, not taxonomy_vocabulary storage (which would pull vocabulary entities). The documentation (in all versions) should change getStorage('taxonomy_vocabulary') into getStorage('taxonomy_term').

CommentFileSizeAuthor
#6 3293996-6.patch746 bytesnarendra.rajwar27

Issue fork drupal-3293996

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tbisciglia created an issue. See original summary.

cilefen’s picture

Version: 9.3.x-dev » 9.4.x-dev
Issue tags: +Novice

immaculatexavier made their first commit to this issue’s fork.

immaculatexavier’s picture

Assigned: Unassigned » immaculatexavier
immaculatexavier’s picture

Assigned: immaculatexavier » Unassigned
narendra.rajwar27’s picture

Status: Active » Needs review
StatusFileSize
new746 bytes
jatingupta40’s picture

Assigned: Unassigned » jatingupta40
Status: Needs review » Active

I will review this patch

jatingupta40’s picture

Assigned: jatingupta40 » Unassigned
Status: Active » Reviewed & tested by the community

Working fine. Updating status to RTBC.

  • catch committed 411f995 on 9.5.x
    Issue #3293996 by narendra.rajwar27, tbisciglia: Use getStorage('...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 9.5.x and cherry-picked to 9.4.x, thanks!

  • catch committed 8ed3c6d on 9.4.x
    Issue #3293996 by narendra.rajwar27, tbisciglia: Use getStorage('...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.