protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
// Don't allow delete access for busy translators.
if (!$entity
->hasPlugin() && $operation != 'delete' || $operation == 'delete' && tmgmt_translator_busy($entity
->id())) {
return AccessResult::forbidden();
}
return AccessResult::allowedIfHasPermission($account, 'administer tmgmt');
}