You are here

public function FieldBlockController::isFieldBlockCompatible in Field as Block 8.2

Determine if a Entity is compatible with Field Blocks.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type name.

Return value

bool True if compatible.

File

src/Controller/FieldBlockController.php, line 71

Class

FieldBlockController
Class FieldBlockController.

Namespace

Drupal\fieldblock\Controller

Code

public function isFieldBlockCompatible(EntityTypeInterface $entity_type) {
  return $entity_type instanceof ContentEntityTypeInterface;
}