Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
92c19743
Commit
92c19743
authored
Nov 04, 2016
by
xjm
Browse files
Issue
#2824778
by Berdir, tim.plunkett: Hide the "Type" select for extra fields
parent
7c43cce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/field_ui/src/Form/EntityDisplayFormBase.php
View file @
92c19743
...
@@ -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.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment