public function ShippingProfileWidget::__construct in Commerce Shipping 8.2
Constructs a new ShippingProfileWidget 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\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\commerce\InlineFormManager $inline_form_manager: The inline form manager.
Overrides WidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ ShippingProfileWidget.php, line 60
Class
- ShippingProfileWidget
- Plugin implementation of 'commerce_shipping_profile'.
Namespace
Drupal\commerce_shipping\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_type_manager, InlineFormManager $inline_form_manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->entityTypeManager = $entity_type_manager;
$this->inlineFormManager = $inline_form_manager;
}