Issue #2824778 by Berdir, tim.plunkett: Hide the "Type" select for extra fields

8.3.x
xjm 2016-11-04 15:58:33 -05:00
parent 7c43cce586
commit 92c1974311
1 changed files with 1 additions and 23 deletions

View File

@ -497,17 +497,7 @@ abstract class EntityDisplayFormBase extends EntityForm {
'#default_value' => $display_options ? $display_options['region'] : 'hidden',
'#attributes' => array('class' => array('field-region')),
),
'plugin' => array(
'type' => array(
'#type' => 'select',
'#title' => $this->t('Visibility for @title', array('@title' => $extra_field['label'])),
'#title_display' => 'invisible',
'#options' => $this->getExtraFieldVisibilityOptions(),
'#default_value' => $display_options ? 'visible' : 'hidden',
'#parents' => array('fields', $field_id, 'type'),
'#attributes' => array('class' => array('field-plugin-type')),
),
),
'plugin' => array(),
'settings_summary' => array(),
'settings_edit' => array(),
);
@ -828,18 +818,6 @@ abstract class EntityDisplayFormBase extends EntityForm {
}
}
/**
* Returns an array of visibility options for extra fields.
*
* @return array
* An array of visibility options.
*/
protected function getExtraFieldVisibilityOptions() {
return array(
'visible' => $this->t('Visible'),
);
}
/**
* Returns entity (form) displays for the current entity display type.
*