Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b71d7e6a
Commit
b71d7e6a
authored
Nov 25, 2014
by
Alex Pott
Browse files
Issue
#2350723
by rjacobs: State toggles for Enable alt/title and Require alt/title not functioning
parent
8a8c28c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/image/src/Plugin/Field/FieldType/ImageItem.php
View file @
b71d7e6a
...
...
@@ -269,7 +269,7 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
'#weight'
=>
10
,
'#states'
=>
array
(
'visible'
=>
array
(
':input[name="
instance
[settings][alt_field]"]'
=>
array
(
'checked'
=>
TRUE
),
':input[name="
field
[settings][alt_field]"]'
=>
array
(
'checked'
=>
TRUE
),
),
),
);
...
...
@@ -287,7 +287,7 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
'#weight'
=>
12
,
'#states'
=>
array
(
'visible'
=>
array
(
':input[name="
instance
[settings][title_field]"]'
=>
array
(
'checked'
=>
TRUE
),
':input[name="
field
[settings][title_field]"]'
=>
array
(
'checked'
=>
TRUE
),
),
),
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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