Commit c6bf6a2d authored by Daniel Moberly's avatar Daniel Moberly Committed by Daniel Moberly
Browse files

Issue #3276676 by Daniel.Moberly: Thin is not available as an option in the Widget

parent 858b931b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ class FontAwesomeIconWidget extends WidgetBase implements ContainerFactoryPlugin
      'far' => $this->t('Regular'),
      'fal' => $this->t('Light'),
      'fad' => $this->t('Duotone'),
      'fat' => $this->t('Thin'),
      'fak' => $this->t('Kit Uploads'),
    ];
    if (is_bool($configuration_settings->get('use_solid_file')) && !$configuration_settings->get('use_solid_file')) {
@@ -135,6 +136,9 @@ class FontAwesomeIconWidget extends WidgetBase implements ContainerFactoryPlugin
    if (is_bool($configuration_settings->get('use_duotone_file')) && !$configuration_settings->get('use_duotone_file')) {
      unset($style_options['fad']);
    }
    if (is_bool($configuration_settings->get('use_thin_file')) && !$configuration_settings->get('use_thin_file')) {
      unset($style_options['fat']);
    }
    $element['settings']['style'] = [
      '#type' => 'select',
      '#title' => $this->t('Style'),