You are here

public function FieldWidgetDisplayBase::isApplicable in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/FieldWidgetDisplayBase.php \Drupal\entity_browser\FieldWidgetDisplayBase::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 FieldWidgetDisplayInterface::isApplicable

1 method overrides FieldWidgetDisplayBase::isApplicable()
ImageThumbnail::isApplicable in src/Plugin/EntityBrowser/FieldWidgetDisplay/ImageThumbnail.php
Returns if the FieldWidgetDisplay can be used for the provided field.

File

src/FieldWidgetDisplayBase.php, line 39

Class

FieldWidgetDisplayBase
Base implementation for field widget display plugins.

Namespace

Drupal\entity_browser

Code

public function isApplicable(EntityTypeInterface $entity_type) {
  return TRUE;
}