public static function VideoEmbedField::isApplicable in Magnific Popup 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/VideoEmbedField.php \Drupal\magnific_popup\Plugin\Field\FieldFormatter\VideoEmbedField::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/ VideoEmbedField.php, line 188
Class
- VideoEmbedField
- Magnific Popup FieldFormatter for Video Embed Field.
Namespace
Drupal\magnific_popup\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return \Drupal::moduleHandler()
->moduleExists('video_embed_field');
}