You are here

public function BynderWidgetBase::__construct in Bynder 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::__construct()
  2. 8 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::__construct()
  3. 8.2 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::__construct()

BynderWidgetBase constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\entity_browser\WidgetValidationManager $validation_manager: The Widget Validation Manager service.

\Drupal\bynder\BynderApiInterface $bynder_api: Bynder API service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Logger factory.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

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

1 call to BynderWidgetBase::__construct()
BynderUpload::__construct in src/Plugin/EntityBrowser/Widget/BynderUpload.php
Upload constructor.
1 method overrides BynderWidgetBase::__construct()
BynderUpload::__construct in src/Plugin/EntityBrowser/Widget/BynderUpload.php
Upload constructor.

File

src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php, line 87

Class

BynderWidgetBase
Base class for Bynder Entity browser widgets.

Namespace

Drupal\bynder\Plugin\EntityBrowser\Widget

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, WidgetValidationManager $validation_manager, BynderApiInterface $bynder_api, LoggerChannelFactoryInterface $logger_factory, LanguageManagerInterface $language_manager, RequestStack $request_stack, ConfigFactoryInterface $config_factory) {
  $this->bynderApi = $bynder_api;
  $this->loggerFactory = $logger_factory;
  $this->languageManager = $language_manager;
  $this->requestStack = $request_stack;
  $this->config = $config_factory;
  parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $entity_type_manager, $validation_manager);
}