public static function ForwardFormFormatter::isApplicable in Forward 4.x
Same name and namespace in other branches
- 4.0.x src/Plugin/Field/FieldFormatter/ForwardFormFormatter.php \Drupal\forward\Plugin\Field\FieldFormatter\ForwardFormFormatter::isApplicable()
Returns if the formatter can be used for the provided field.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition that should be checked.
Return value
bool TRUE if the formatter can be used, FALSE otherwise.
Overrides FormatterBase::isApplicable
File
- src/
Plugin/ Field/ FieldFormatter/ ForwardFormFormatter.php, line 86
Class
- ForwardFormFormatter
- Plugin implementation of the Forward Form formatter.
Namespace
Drupal\forward\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return \Drupal::currentUser()
->hasPermission('access forward');
}