public function S3FileOriginLocator::__construct in Acquia Content Hub 8.2
S3FileOriginLocator constructor.
Parameters
\Drupal\acquia_contenthub_s3\S3FileMap $file_map: The database connection.
\Drupal\Core\Entity\EntityStorageInterface $storage: The file entity storage.
\Drupal\acquia_contenthub\ContentHubCommonActions $common: The ContentHub common actions service.
\Drupal\Core\Config\Config $config: The acquia_contenthub.admin_settings config object.
File
- modules/
acquia_contenthub_s3/ src/ S3FileOriginLocator.php, line 59
Class
- S3FileOriginLocator
- Responsible for locating the s3 source of the given file url.
Namespace
Drupal\acquia_contenthub_s3Code
public function __construct(S3FileMap $file_map, EntityStorageInterface $storage, ContentHubCommonActions $common, Config $config) {
$this->fileEntityStorage = $storage;
$this->s3FileMap = $file_map;
$this->commonActions = $common;
$this->chConfig = $config;
}