Problem/Motivation

Being on any node page that applies this text filter, throws this error.

Error: Call to a member function addMessage() on null in Drupal\image_resize_filter\Plugin\Filter\FilterImageResize->getImages()

Steps to reproduce

  1. Install and enable the module
  2. Set the text filter and view any of the node page where this filter is applicable

Proposed resolution

Change $this->messenger to $this->messenger() to invoke the correct service.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hardikpandya created an issue. See original summary.

hardikpandya’s picture

Assigned: hardikpandya » Unassigned
Status: Active » Needs review
StatusFileSize
new1.03 KB

keshav.k made their first commit to this issue’s fork.

keshavv’s picture

StatusFileSize
new174.81 KB

use MessengerTrait is missing in the above patch.
So I have created the MR with all the necessary changes.

Added a screenshot for reference.

Please review.
Thank you.

Screenshot

mukhtarm’s picture

Issue summary: View changes

Changed the typo in issue description.