public function Soundcloud::__construct in Media entity Soundcloud 8.2
Same name and namespace in other branches
- 3.x src/Plugin/media/Source/Soundcloud.php \Drupal\media_entity_soundcloud\Plugin\media\Source\Soundcloud::__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.
Overrides MediaSourceBase::__construct
File
- src/
Plugin/ media/ Source/ Soundcloud.php, line 56
Class
- Soundcloud
- Soundcloud entity media source.
Namespace
Drupal\media_entity_soundcloud\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, ClientInterface $httpClient) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_field_manager, $field_type_manager, $config_factory);
$this->httpClient = $httpClient;
}