public function Twitter::__construct in Media entity Twitter 8.2
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: Config field type manager service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\media_entity_twitter\TweetFetcherInterface $tweet_fetcher: The tweet fetcher.
\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger channel.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
Overrides MediaSourceBase::__construct
File
- src/
Plugin/ media/ Source/ Twitter.php, line 121
Class
- Twitter entity media source.
Namespace
Drupal\media_entity_twitter\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, RendererInterface $renderer, TweetFetcherInterface $tweet_fetcher, LoggerChannelInterface $logger, FileSystemInterface $file_system) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_field_manager, $field_type_manager, $config_factory);
$this->renderer = $renderer;
$this->tweetFetcher = $tweet_fetcher;
$this->logger = $logger;
$this->fileSystem = $file_system;
}