You are here

protected function ContentEntityLingotekActionDeriver::isApplicable in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  2. 3.0.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  3. 3.1.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  4. 3.2.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  5. 3.3.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  6. 3.4.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  7. 3.5.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  8. 3.6.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  9. 3.7.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
  10. 3.8.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()

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/ContentEntityLingotekActionDeriver.php, line 16

Class

ContentEntityLingotekActionDeriver

Namespace

Drupal\lingotek\Plugin\Action\Derivative

Code

protected function isApplicable(EntityTypeInterface $entity_type) {
  return TRUE;

  /** @var \Drupal\lingotek\LingotekConfigurationServiceInterface $drupalConfiguration */
  $drupalConfiguration = \Drupal::service('lingotek.configuration');
  return $drupalConfiguration
    ->isEnabled($entity_type
    ->id());
}