You are here

protected function EntityKmlDeriver::isApplicable in farmOS 2.x

Indicates whether the deriver can be used for the provided entity type.

Parameters

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

Return value

bool TRUE if the entity type can be used, FALSE otherwise.

Overrides EntityActionDeriverBase::isApplicable

File

modules/core/kml/src/Plugin/Action/Derivative/EntityKmlDeriver.php, line 37

Class

EntityKmlDeriver
Provides an action deriver for the KML action.

Namespace

Drupal\farm_kml\Plugin\Action\Derivative

Code

protected function isApplicable(EntityTypeInterface $entity_type) {
  return in_array($entity_type
    ->id(), [
    'log',
    'asset',
  ]);
}