function File::create
Same name in other branches
- 9 core/modules/file/src/Plugin/views/field/File.php \Drupal\file\Plugin\views\field\File::create()
- 11.x core/modules/file/src/Plugin/views/field/File.php \Drupal\file\Plugin\views\field\File::create()
Overrides PluginBase::create
File
-
core/
modules/ file/ src/ Plugin/ views/ field/ File.php, line 49
Class
- File
- Field handler to provide simple renderer that allows linking to a file.
Namespace
Drupal\file\Plugin\views\fieldCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('file_url_generator'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.