Problem/Motivation

I want to disable the Field UI on production, but this module doesn't let me do this. As "FieldWidget" is a core mechanism and all components (Plugin, WidgetInterface, Annotation) is provided in core/lib via the Drupal\Core\... namespace this dependency is not necessary.

The same is true for options, as the options_select widget is defined via \Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsSelectWidget.

So none of these dependencies is needed.

Proposed resolution

Remove field_ui and options from dependencies

Remaining tasks

* Patch done

User interface changes

none

API changes

none

Data model changes

none

CommentFileSizeAuthor
#2 2926838-2-remove-dependencies.patch274 bytesderhasi

Comments

derhasi created an issue. See original summary.

derhasi’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new274 bytes

And here is the patch to do so.

jeffam’s picture

Status: Needs review » Reviewed & tested by the community

Perfect! We also disable Field UI on production, and I was just about to create a patch when I found this.

  • webadpro committed b4362e4 on 8.x-1.x authored by derhasi
    Issue #2926838 by derhasi: Remove field_ui and options from dependencies
    
webadpro’s picture

Status: Reviewed & tested by the community » Fixed
webadpro’s picture

Status: Fixed » Closed (fixed)