Skip to content

Add PathItem field type stub#1007

Merged
mglaman merged 1 commit into
mglaman:mainfrom
oiahoon:fix/path-item-stub
Jul 15, 2026
Merged

Add PathItem field type stub#1007
mglaman merged 1 commit into
mglaman:mainfrom
oiahoon:fix/path-item-stub

Conversation

@oiahoon

@oiahoon oiahoon commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a stub for the Drupal path module's PathItem properties
  • cover alias, pid, and langcode inference in the shared field-type fixture

Testing

  • php vendor/bin/phpunit --no-coverage --filter=FieldTypesTest
  • php vendor/bin/phpunit --no-coverage
  • php vendor/bin/phpstan analyze --memory-limit=-1
  • php vendor/bin/phpcs
  • composer validate --strict --no-check-publish
  • php -l stubs/Drupal/path/Plugin/Field/FieldType/PathItem.stub
  • php -l tests/src/Type/data/field-types.php
  • git diff --check origin/main...HEAD

Fixes #365

@mglaman mglaman left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally: stub matches core PathItem property definitions, FieldTypesTest passes, follows existing stub conventions. Thanks!

@mglaman
mglaman merged commit e41d454 into mglaman:main Jul 15, 2026
14 of 15 checks passed
mglaman added a commit that referenced this pull request Jul 15, 2026
* Add PathItem field type stub (#1007)

(cherry picked from commit e41d454)

* Run CI on 2.0.x maintenance branch (#1002)

Pushes and pull requests against 2.0.x had no test coverage after the
branch was cut from 2.0.17.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 3cc6987)

---------

Co-authored-by: onice <joyhuangyuyao@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

path.module field type stubs

2 participants