You are here

protected function RefreshInstagramTokenActionDeriver::isApplicable in Instagram Feeds 8

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

src/Plugin/Action/Derivative/RefreshInstagramTokenActionDeriver.php, line 19

Class

RefreshInstagramTokenActionDeriver
Provides an action deriver that finds entity types of InstagramAccountInterface.

Namespace

Drupal\instagram_feeds\Plugin\Action\Derivative

Code

protected function isApplicable(EntityTypeInterface $entity_type) {
  return $entity_type
    ->entityClassImplements(InstagramAccountInterface::class);
}