Loading auto_node_translate.module +1 −1 Changes for auto_node_translate.module: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ function auto_node_translate_translate_access(EntityInterface $entity) { */ function auto_node_translate_entity_operation(EntityInterface $entity) { $operations = []; if ($entity->hasLinkTemplate('drupal:content-translation-overview') && auto_node_translate_translate_access($entity)->isAllowed()) { if ($entity->getEntityTypeId() == 'node' && $entity->hasLinkTemplate('drupal:content-translation-overview') && auto_node_translate_translate_access($entity)->isAllowed()) { $operations['auto_translate'] = [ 'title' => t('Auto Translate'), 'url' => Url::fromRoute('entity.' . $entity->getEntityTypeId() . '.auto_translation_add', ['node' => $entity->id()]), Loading Loading
auto_node_translate.module +1 −1 Changes for auto_node_translate.module: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ function auto_node_translate_translate_access(EntityInterface $entity) { */ function auto_node_translate_entity_operation(EntityInterface $entity) { $operations = []; if ($entity->hasLinkTemplate('drupal:content-translation-overview') && auto_node_translate_translate_access($entity)->isAllowed()) { if ($entity->getEntityTypeId() == 'node' && $entity->hasLinkTemplate('drupal:content-translation-overview') && auto_node_translate_translate_access($entity)->isAllowed()) { $operations['auto_translate'] = [ 'title' => t('Auto Translate'), 'url' => Url::fromRoute('entity.' . $entity->getEntityTypeId() . '.auto_translation_add', ['node' => $entity->id()]), Loading