use Drupal\Core\Form\FormStateInterface; /** * Implementa hook_form_alter(). */ function disable_autocomplete_login_form_alter(&$form, FormStateInterface $form_state, $form_id) { if ($form_id === 'user_login_form') { // Desactiva el autocompletar. $form['#attributes']['autocomplete'] = 'off'; if (isset($form['name'])) { $form['name']['#attributes']['autocomplete'] = 'off'; } if (isset($form['pass'])) { $form['pass']['#attributes']['autocomplete'] = 'off'; } } } Sitemap | Centro Colombiano de Datos Oceanográficos
Skip to main content
Última actualización: 2024-12-03
Logo Dimar
Logo Ministerio de Defensa

Sitemap

  • Home
  • sitemap
  • Tue, 12/03/2024 - 08:48

    Menú Principal Cecoldo