Hello,

I need use hook_pathauto_pattern_alter() in my project, to alter pattern of taxonomy term.

Case 1: If I open edit form of existing term I can get taxonomy term object using $context['data']['taxonomy_term'] (see attached screen1.png).

Case 2: If I insert or update new term I can get taxonomy term object using $context['data']['term'] (see attached screen2.png).

You can see, that used two different keys. What reason to have two different keys (taxonomy_term in first case, and term in second case)?

How to reproduce on fresh installation:
1. Install fresh core
2. Create one new term.
3. Enable Pathauto module.
4. Open edit form of existing term and run debug, you will see case 1.
5. Run debug and insert or update term, you will see case 2.

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

zestagio created an issue. See original summary.

zestagio’s picture

zestagio’s picture

Status: Active » Needs review

Status: Needs review » Needs work
zestagio’s picture

Status: Needs work » Needs review