public function FileStorage::__construct in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::__construct()
- 10 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::__construct()
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::__construct()
- 9 core/lib/Drupal/Component/PhpStorage/FileStorage.php \Drupal\Component\PhpStorage\FileStorage::__construct()
Constructs this FileStorage object.
Parameters
array $configuration: An associative array, containing at least these two keys:
- directory: The directory where the files should be stored.
- bin: The storage bin. Multiple storage objects can be instantiated with the same configuration, but for different bins..
File
- core/
lib/ Drupal/ Component/ PhpStorage/ FileStorage.php, line 28
Class
- FileStorage
- Stores the code as regular PHP files.
Namespace
Drupal\Component\PhpStorageCode
public function __construct(array $configuration) {
$this->directory = $configuration['directory'] . '/' . $configuration['bin'];
}