BaseFieldFileFormatterBase::$fileUrlGenerator

The file URL generator.

Type: \Drupal\Core\File\FileUrlGeneratorInterface

File

core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php, line 23

Class

BaseFieldFileFormatterBase
Base class for file formatters, which allow to link to the file download URL.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

protected $fileUrlGenerator;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.