Problem/Motivation

Opening a admin/structure/paragraphs_type/X/display page thrown me the error

Using $this when not in object context in Drupal\ace_editor\Plugin\Field\FieldFormatter\AceFormatter::defaultSettings

Steps to reproduce

Well, it doesn't steps. The function is declared static, $this can't occur.

Proposed resolution

Just call Drupal::config(). Also, configFactory->get returns an object, so just run ->get() as well.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3271278_2.patch640 bytesghost of drupal past

Issue fork ace_editor-3271278

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

Charlie ChX Negyesi created an issue. See original summary.

ghost of drupal past’s picture

Issue summary: View changes
StatusFileSize
new640 bytes
ghost of drupal past’s picture

Title: Using ace editor with layout builder throws error » Using ace editor with field ui throws error
harlor’s picture

Status: Needs review » Reviewed & tested by the community

This works.

interdruper made their first commit to this issue’s fork.

interdruper’s picture

Status: Reviewed & tested by the community » Fixed

Commited to 8.x-1.x-dev. Thanks!

Status: Fixed » Closed (fixed)

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

sgurlt’s picture

Version: 8.x-1.x-dev » 2.0.x-dev

The same issue reoccured in 2.0.x-dev. The patch also need to be applied there as well.