Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I tried to extend the EntityUrlGeneratorBase
for a custom media url generator and noticed that throughout the class the class ContentEntityBase instead of the interface ContentEntityInterface is used.
Proposed resolution
ContentEntityInterface is a drop-in replacement for ContentEntityBase in the type definitions and docblocks.
Comment | File | Size | Author |
---|---|---|---|
#2 | simple_sitemap-replace_class_with_interface-3181879-2.patch | 2.55 KB | tgauges |
|
Comments
Comment #2
tgauges CreditAttribution: tgauges commentedComment #3
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedComment #5
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedThanks.