public function LinkWithAttributesWidget::__construct in Link Attributes widget 8
Constructs a LinkWithAttributesWidget 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.
\Drupal\link_attributes\LinkAttributesManager $link_attributes_manager: The link attributes manager.
Overrides WidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ LinkWithAttributesWidget.php, line 49
Class
- LinkWithAttributesWidget
- Plugin implementation of the 'link' widget.
Namespace
Drupal\link_attributes\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, LinkAttributesManager $link_attributes_manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->linkAttributesManager = $link_attributes_manager;
}