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