'#description' =>
t('When this option is checked, this translation needs to be updated. Uncheck when the translation is up to date again.'
),
'#access' =>
$outdated_access,
];
$form['content_translation'
]['#open'
] = TRUE;
} // Default to the anonymous user.
$uid = 0;
if ($new_translation) { $uid =
$this->currentUser->
id();
} elseif (($account =
$metadata->
getAuthor()) &&
$account->
id()) { $uid =
$account->
id();
} $form['content_translation'
]['uid'
] =
[ '#type' => 'entity_autocomplete',
'#title' =>
t('Authored by'
),
'#target_type' => 'user',
'#default_value' => User::
load($uid),
// Validation is done by static::entityFormValidate().
'#validate_reference' => FALSE,
'#maxlength' => 60,
'#description' =>
t('Leave blank for %anonymous.',
['%anonymous' => \Drupal::
config('user.settings'
)->
get('anonymous'
)]),
];