function File::__construct
Same name in this branch
- 11.1.x vendor/phpunit/php-code-coverage/src/Node/File.php \SebastianBergmann\CodeCoverage\Node\File::__construct()
- 11.1.x vendor/phpunit/php-code-coverage/src/Report/Xml/File.php \SebastianBergmann\CodeCoverage\Report\Xml\File::__construct()
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/File.php \PHPUnit\TextUI\Configuration\File::__construct()
- 11.1.x vendor/symfony/mime/Part/File.php \Symfony\Component\Mime\Part\File::__construct()
- 11.1.x vendor/symfony/validator/Constraints/File.php \Symfony\Component\Validator\Constraints\File::__construct()
- 11.1.x vendor/symfony/http-foundation/File/File.php \Symfony\Component\HttpFoundation\File\File::__construct()
- 11.1.x vendor/squizlabs/php_codesniffer/src/Files/File.php \PHP_CodeSniffer\Files\File::__construct()
Constructs a File object.
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\File\FileUrlGeneratorInterface $file_url_generator: The file URL generator.
Overrides HandlerBase::__construct
File
-
core/
modules/ file/ src/ Plugin/ views/ field/ File.php, line 41
Class
- File
- Field handler to provide simple renderer that allows linking to a file.
Namespace
Drupal\file\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, FileUrlGeneratorInterface $file_url_generator) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->fileUrlGenerator = $file_url_generator;
}