Problem/Motivation

When using the entity reference revisions display, the following warning is genereated:

Deprecated function: Creation of dynamic property Drupal\entity_reference_revisions\Plugin\views\display\EntityReferenceRevisions::$id_field_alias is deprecated in Drupal\entity_reference_revisions\Plugin\views\display\EntityReferenceRevisions->query() (line 121 of modules/contrib/entity_reference_revisions/src/Plugin/views/display/EntityReferenceRevisions.php)

Proposed resolution

Declare it like the EntityReference display does.

CommentFileSizeAuthor
#4 entity_reference_revisions-3544409-1.diff719 bytesmjpa
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

mjpa created an issue. See original summary.

mjpa’s picture

Status: Active » Needs review
mjpa’s picture

StatusFileSize
new719 bytes

Uploading patch to use with composer.

mjmorley’s picture

Status: Needs review » Reviewed & tested by the community

Can confirm this works for me using PHP 8.3 and Drupal 10.3

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

  • berdir committed ca0b5516 on 8.x-1.x authored by mjpa
    fix: #3544409 Deprecated function: Creation of dynamic property Drupal\...
berdir’s picture

Status: Reviewed & tested by the community » Fixed

Merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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