Entity browser relies on Node module to determine whether to use the admin theme

Created on 27 June 2017, over 7 years ago
Updated 19 January 2024, 10 months ago

\Drupal\entity_browser\Entity\EntityBrowser::route() contains the following as part of the entity browser route declaration:

  '_admin_route' => \Drupal::config('node.settings')->get('use_admin_theme')

The fact that this does not fatal if Node module is not installed is incidental and a weirdness of the config system. However, there should be some way to control this value without Node module.

I would suggest simply making it a boolean property of the entity browser configuration itself. What do you think?

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Core API

Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024