You are here

public function BynderSearch::__construct in Bynder 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/EntityBrowser/Widget/BynderSearch.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderSearch::__construct()

BynderSearch 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\Session\AccountProxyInterface $account_proxy: Account proxy.

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: Url generator.

\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.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

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

Overrides BynderWidgetBase::__construct

File

src/Plugin/EntityBrowser/Widget/BynderSearch.php, line 137

Class

BynderSearch
Uses a Bynder API to search and provide entity listing in a browser's widget.

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, AccountProxyInterface $account_proxy, UrlGeneratorInterface $url_generator, LoggerChannelFactoryInterface $logger_factory, LanguageManagerInterface $language_manager, RequestStack $request_stack, ConfigFactoryInterface $config_factory, CacheBackendInterface $cache, TimeInterface $time, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $entity_type_manager, $validation_manager, $bynder_api, $logger_factory, $language_manager, $request_stack, $config_factory);
  $this->accountProxy = $account_proxy;
  $this->urlGenerator = $url_generator;
  $this->cache = $cache;
  $this->time = $time;
  $this->moduleHandler = $module_handler;
}