public function PhotosImage::__construct in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Plugin/migrate/destination/PhotosImage.php \Drupal\photos\Plugin\migrate\destination\PhotosImage::__construct()
Constructs a PhotosImage object.
Parameters
array $configuration: Plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
\Drupal\migrate\Plugin\MigrationInterface $migration: The current migration.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Image\ImageFactory $image_factory: The image factory service.
\Drupal\photos\PhotosUploadInterface $photos_upload: The photos upload service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides DestinationBase::__construct
File
- src/
Plugin/ migrate/ destination/ PhotosImage.php, line 86
Class
- PhotosImage
- Photos image migration destination.
Namespace
Drupal\photos\Plugin\migrate\destinationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, Connection $connection, EntityTypeManagerInterface $entity_manager, ImageFactory $image_factory, PhotosUploadInterface $photos_upload, TimeInterface $time) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
$this->connection = $connection;
$this->entityTypeManager = $entity_manager;
$this->imageFactory = $image_factory;
$this->photosUpload = $photos_upload;
$this->time = $time;
}