function FileUriFormatter::isApplicable
Same name in other branches
- 9 core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::isApplicable()
- 8.9.x core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::isApplicable()
- 10 core/modules/file/src/Plugin/Field/FieldFormatter/FileUriFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileUriFormatter::isApplicable()
Overrides BaseFieldFileFormatterBase::isApplicable
File
-
core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileUriFormatter.php, line 63
Class
- FileUriFormatter
- Formatter to render the file URI to its download path.
Namespace
Drupal\file\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return parent::isApplicable($field_definition) && $field_definition->getName() === 'uri';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.