Commit 92c19743 authored by xjm's avatar xjm
Browse files

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

parent 7c43cce5
...@@ -497,17 +497,7 @@ protected function buildExtraFieldRow($field_id, $extra_field) { ...@@ -497,17 +497,7 @@ protected function buildExtraFieldRow($field_id, $extra_field) {
'#default_value' => $display_options ? $display_options['region'] : 'hidden', '#default_value' => $display_options ? $display_options['region'] : 'hidden',
'#attributes' => array('class' => array('field-region')), '#attributes' => array('class' => array('field-region')),
), ),
'plugin' => array( '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')),
),
),
'settings_summary' => array(), 'settings_summary' => array(),
'settings_edit' => array(), 'settings_edit' => array(),
); );
...@@ -828,18 +818,6 @@ public function getRowRegion($row) { ...@@ -828,18 +818,6 @@ public function getRowRegion($row) {
} }
} }
/**
* 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. * Returns entity (form) displays for the current entity display type.
* *
......
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