public function File::__construct in Feeds 8.3
Constructs a File object.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin id.
array $plugin_definition: The plugin definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\GuzzleHttp\ClientInterface $client: The http client.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\feeds\EntityFinderInterface $entity_finder: The Feeds entity finder service.
\Drupal\Core\File\FileSystemInterface $file_system: The file and stream wrapper helper.
Overrides EntityReference::__construct
File
- src/
Feeds/ Target/ File.php, line 79
Class
- File
- Defines a file field mapper.
Namespace
Drupal\feeds\Feeds\TargetCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ClientInterface $client, Token $token, EntityFieldManagerInterface $entity_field_manager, EntityFinderInterface $entity_finder, FileSystemInterface $file_system) {
$this->client = $client;
$this->token = $token;
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_field_manager, $entity_finder);
$this->fileExtensions = array_filter(explode(' ', $this->settings['file_extensions']));
$this->fileSystem = $file_system;
}