Call to private method ToolbarPlusUi::getEditModeState() from global scope in edit_plus_preprocess_field()

Created on 14 November 2024, about 1 month ago

Problem/Motivation

Private method getEditModeState() from class ToolbarPlusUI inside the toolbar + module is called from the Edit + module. Line 24 at edit_plus_preprocess_field().

Resulting in the following error:
Error: Call to private method Drupal\toolbar_plus\ToolbarPlusUi::getEditModeState() from global scope in edit_plus_preprocess_field() (line 24 of modules/contrib/edit_plus/edit_plus.module).

Steps to reproduce

  1. Install the Edit + module via composer which has a dependency on the Toolbar + module.
  2. Enable both modules
  3. Navigate to the homepage

Proposed resolution

Make getEditModeState() a public method.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom marcosdr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024