You are here

public function ImageFieldTokensCropWidget::__construct in ImageField Tokens 8.2

Constructs a new ImageFieldTokensCropWidget object.

Parameters

string $plugin_id: Plugin id.

mixed $plugin_definition: Plugin definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: Field definition.

array $settings: Field settings.

array $third_party_settings: Third party settings.

\Drupal\Core\Render\ElementInfoManagerInterface $element_info: The element info manager.

\Drupal\image_widget_crop\ImageWidgetCropInterface $iwc_manager: The ImageWidgetCrop manager service.

\Drupal\Core\Entity\EntityStorageInterface $image_style_storage: The image style entity storage.

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $crop_type_storage: The crop type storage.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Session\AccountInterface $current_user: Current user service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

src/Plugin/Field/FieldWidget/ImageFieldTokensCropWidget.php, line 75

Class

ImageFieldTokensCropWidget
Plugin implementation of the 'image_widget_crop' widget.

Namespace

Drupal\imagefield_tokens\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ElementInfoManagerInterface $element_info, ImageWidgetCropInterface $iwc_manager, EntityStorageInterface $image_style_storage, ConfigEntityStorageInterface $crop_type_storage, ConfigFactoryInterface $config_factory, AccountInterface $current_user, ModuleHandlerInterface $module_handler) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings, $element_info, $iwc_manager, $image_style_storage, $crop_type_storage, $config_factory);
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
}