Problem/Motivation

Render #post_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was Drupal\address\Plugin\Field\FieldFormatter\AddressDefaultFormatter::postRender. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725

Proposed resolution

Unfortunatly, this interface doesn't exist until 8.8, so we need a little workaround to be compatible with 8.6 and 8.7 at the same time.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3089266-2.address.patch1.52 KBmikelutz

Comments

mikelutz created an issue. See original summary.

mikelutz’s picture

StatusFileSize
new1.52 KB
bojanz’s picture

Status: Active » Fixed

Tweaked to satisfy phpcs, and committed. Thanks!

  • bojanz committed 63a75fe on 8.x-1.x authored by mikelutz
    Issue #3089266 by mikelutz: AddressDefaultFormatter must implement \...

Status: Fixed » Closed (fixed)

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

chris matthews’s picture