You are here

function thunder_paragraphs_field_widget_third_party_settings_form in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_third_party_settings_form()
  2. 8.3 modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_third_party_settings_form()
  3. 8.4 modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_third_party_settings_form()
  4. 6.2.x modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_third_party_settings_form()
  5. 6.0.x modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_third_party_settings_form()
  6. 6.1.x modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_third_party_settings_form()

Implements hook_field_widget_third_party_settings_form().

File

modules/thunder_paragraphs/thunder_paragraphs.module, line 18
Contains paragraphs related hook implementations and functions.

Code

function thunder_paragraphs_field_widget_third_party_settings_form(WidgetInterface $plugin, FieldDefinitionInterface $field_definition, $form_mode, $form, FormStateInterface $form_state) {
  $element = [];
  if ($plugin instanceof ParagraphsWidget) {

    // Add library for hard-wiring and disabling options.
    $element['#attached']['library'][] = 'thunder_paragraphs/fieldwidget_settings';
  }
  return $element;
}