public function ImageThumbnail::isApplicable in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Plugin/EntityBrowser/FieldWidgetDisplay/ImageThumbnail.php \Drupal\entity_browser\Plugin\EntityBrowser\FieldWidgetDisplay\ImageThumbnail::isApplicable()
Returns if the FieldWidgetDisplay can be used for the provided field.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type that should be checked.
Return value
bool TRUE if the FieldWidgetDisplay can be used, FALSE otherwise.
Overrides FieldWidgetDisplayBase::isApplicable
File
- src/
Plugin/ EntityBrowser/ FieldWidgetDisplay/ ImageThumbnail.php, line 97
Class
- ImageThumbnail
- Displays image thumbnail.
Namespace
Drupal\entity_browser\Plugin\EntityBrowser\FieldWidgetDisplayCode
public function isApplicable(EntityTypeInterface $entity_type) {
return $entity_type
->entityClassImplements(FileInterface::class);
}