Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ol0lll committed Jan 4, 2024
1 parent 5d9f8a0 commit e3ae2e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ParagraphsFeatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function registerFormWidgetFeatures(array &$elements, ParagraphsWi
$elements['header_actions']['dropdown_actions']['collapse_all']['#access'] = (bool) $widget->getThirdPartySetting('paragraphs_features', 'show_collapse_all', TRUE);
}
if (!empty($elements['header_actions']['actions']['collapse_all'])) {
$elements['header_actions']['actions']['collapse_all']['#access'] = (bool) $widget->getThirdPartySetting('paragraphs_features', 'show_collapse_all', TRUE);;
$elements['header_actions']['actions']['collapse_all']['#access'] = (bool) $widget->getThirdPartySetting('paragraphs_features', 'show_collapse_all', TRUE);
}
}

Expand Down Expand Up @@ -138,7 +138,6 @@ public static function getThirdPartyForm(WidgetInterface $plugin, $field_name) {
'#states' => [
'enabled' => [
':input[name="fields[' . $field_name . '][settings_edit_form][settings][features][collapse_edit_all]"]' => [
#':input[name="fields[' . $field_name . '][settings_edit_form][third_party_settings][paragraphs_features][add_in_between]"]' => [
'checked' => TRUE,
],
],
Expand Down

0 comments on commit e3ae2e5

Please sign in to comment.