Commit 9144713d authored by alexpott's avatar alexpott

Issue #2029357 followup by tim.plunkett: Remove field_ui().admin.inc.

parent 6ac2f8e2
......@@ -73,8 +73,6 @@ public function getCancelPath() {
* {@inheritdoc}
*/
public function submit(array $form, array &$form_state) {
form_load_include($form_state, 'inc', 'field_ui', 'field_ui.admin');
$field = $this->entity->getField();
$bundles = entity_get_bundles();
$bundle_label = $bundles[$this->entity->entity_type][$this->entity->bundle]['label'];
......
......@@ -66,7 +66,6 @@ public static function create(ContainerInterface $container) {
*/
public function buildForm(array $form, array &$form_state, FieldInstanceInterface $field_instance = NULL) {
$this->instance = $form_state['instance'] = $field_instance;
form_load_include($form_state, 'inc', 'field_ui', 'field_ui.admin');
$field = $this->instance->getField();
$form['#field'] = $field;
......
......@@ -66,7 +66,6 @@ public static function create(ContainerInterface $container) {
*/
public function buildForm(array $form, array &$form_state, FieldInstanceInterface $field_instance = NULL) {
$this->instance = $form_state['instance'] = $field_instance;
form_load_include($form_state, 'inc', 'field_ui', 'field_ui.admin');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment