protected function ContentEntityLingotekActionDeriver::isApplicable in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8.2 src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 4.0.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.0.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.1.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.2.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.3.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.5.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.6.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 3.7.x src/Plugin/Action/Derivative/ContentEntityLingotekActionDeriver.php \Drupal\lingotek\Plugin\Action\Derivative\ContentEntityLingotekActionDeriver::isApplicable()
- 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
Namespace
Drupal\lingotek\Plugin\Action\DerivativeCode
protected function isApplicable(EntityTypeInterface $entity_type) {
return TRUE;
/** @var \Drupal\lingotek\LingotekConfigurationServiceInterface $drupalConfiguration */
$drupalConfiguration = \Drupal::service('lingotek.configuration');
return $drupalConfiguration
->isEnabled($entity_type
->id());
}