protected function checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) {
if ($operation == 'edit') {
return AccessResult::allowedIfHasPermissions($account, [
'administer tmgmt',
'administer translation tasks',
]);
}
return parent::checkFieldAccess($operation, $field_definition, $account, $items);
}