You are here

public function FontAwesomeIconWidget::__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 WidgetBase::__construct

1 call to FontAwesomeIconWidget::__construct()
FontAwesomeIconpickerWidget::__construct in modules/fontawesome_iconpicker_widget/src/Plugin/Field/FieldWidget/FontAwesomeIconpickerWidget.php
Constructs a WidgetBase object.
1 method overrides FontAwesomeIconWidget::__construct()
FontAwesomeIconpickerWidget::__construct in modules/fontawesome_iconpicker_widget/src/Plugin/Field/FieldWidget/FontAwesomeIconpickerWidget.php
Constructs a WidgetBase object.

File

src/Plugin/Field/FieldWidget/FontAwesomeIconWidget.php, line 46

Class

FontAwesomeIconWidget
Plugin implementation of the 'fontawesome_icon' widget.

Namespace

Drupal\fontawesome\Plugin\Field\FieldWidget

Code

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