use entityClassImplements instead of checking for getChangedTime method

Created on 18 June 2025, 20 days ago

Problem/Motivation

It's better DX to check for EntityChangedInterface using EntityTypeInterface::entityClassImplements() rather than doing:

method_exists($existing_entity, 'getChangedTime')

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Active

Version

4.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024