public function Bynder::__construct in Bynder 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/media/Source/Bynder.php \Drupal\bynder\Plugin\media\Source\Bynder::__construct()
- 4.0.x src/Plugin/media/Source/Bynder.php \Drupal\bynder\Plugin\media\Source\Bynder::__construct()
Constructs a new class instance.
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.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Entity field manager service.
\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\bynder\BynderApiInterface $bynder_api_service: Bynder api service.
\Drupal\Core\Session\AccountProxyInterface $account_proxy: Account proxy.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger factory service.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides MediaSourceBase::__construct
File
- src/
Plugin/ media/ Source/ Bynder.php, line 134
Class
- Bynder
- Provides media source plugin for Bynder.
Namespace
Drupal\bynder\Plugin\media\SourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, FieldTypePluginManagerInterface $field_type_manager, ConfigFactoryInterface $config_factory, BynderApiInterface $bynder_api_service, AccountProxyInterface $account_proxy, UrlGeneratorInterface $url_generator, LoggerChannelFactoryInterface $logger, CacheBackendInterface $cache, TimeInterface $time, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_field_manager, $field_type_manager, $config_factory);
$this->bynderApi = $bynder_api_service;
$this->accountProxy = $account_proxy;
$this->urlGenerator = $url_generator;
$this->logger = $logger;
$this->cache = $cache;
$this->time = $time;
$this->moduleHandler = $module_handler;
}