public static function Colorbox::isApplicable in Video Embed Field 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/Colorbox.php \Drupal\video_embed_field\Plugin\Field\FieldFormatter\Colorbox::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/ Colorbox.php, line 206
Class
- Colorbox
- Plugin implementation of the thumbnail field formatter.
Namespace
Drupal\video_embed_field\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return \Drupal::moduleHandler()
->moduleExists('colorbox');
}