You are here

public function FontAwesomeIconpickerWidget::__construct in Font Awesome Icons 8.2

Constructs a WidgetBase object.

Parameters

string $plugin_id: The plugin_id for the widget.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.

array $settings: The widget settings.

array $third_party_settings: Any third party settings.

Overrides FontAwesomeIconWidget::__construct

File

modules/fontawesome_iconpicker_widget/src/Plugin/Field/FieldWidget/FontAwesomeIconpickerWidget.php, line 53

Class

FontAwesomeIconpickerWidget
Fontawesome Iconpicker Widget.

Namespace

Drupal\fontawesome_iconpicker_widget\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ConfigFactory $config_factory, MessengerInterface $messenger, IconManagerServiceInterface $icon_manager, FontAwesomeManagerInterface $font_awesome_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings, $config_factory, $font_awesome_manager);
  $this->messenger = $messenger;
  $this->iconManager = $icon_manager;
  $this->fontAwesomeManager = $font_awesome_manager;
}