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.
Updated: Comment #N
Problem/Motivation
Editor::label() indiscriminately loads the filter entity without storing it or anything. This struck me as odd, so I uploaded a patch replacing the method body with an exception, and it passed :) https://qa.drupal.org/pifr/test/687823
Proposed resolution
Remove the method completely. Entity::label() will be used.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Comment | File | Size | Author |
---|---|---|---|
editor-label-remove.patch | 668 bytes | tim.plunkett | |
Comments
Comment #1
larowlanassuming bot agrees
Comment #2
Wim LeersSeems fair. AFAICT calling
->label()
will now return NULL. Which is fine, because the text format ID is available, so they can load that object themselves and then get that label.RTBC+1
Comment #3
webchickCommitted and pushed to 8.x. Thanks!