function CommentPermalinkFormatter::isApplicable
Overrides FormatterBase::isApplicable
File
-
core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentPermalinkFormatter.php, line 45
Class
- CommentPermalinkFormatter
- Plugin implementation of the 'comment_permalink' formatter.
Namespace
Drupal\comment\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return parent::isApplicable($field_definition) && $field_definition->getTargetEntityTypeId() === 'comment' && $field_definition->getName() === 'subject';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.