Use EntityInterface::bundle() instead of $entity->getType()

Created on 13 April 2016, over 9 years ago
Updated 8 July 2025, 3 months ago

Since we are supporting entities of any type, we should stick to using methods in EntityInterface when possible. One improvement would be to replace calls to getType() with bundle(), since bundle() is guaranteed by the interface.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jfrederick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024