$form_state->
unsetValue('logo_path'
);
} // When intending to use the default favicon, unset the favicon_path.
if ($form_state->
getValue('default_favicon'
)) { $form_state->
unsetValue('favicon_path'
);
} // If the user provided a path for a logo or favicon file, make sure a file
// exists at that path.
if ($form_state->
getValue('logo_path'
)) { $path =
$this->
validatePath($form_state->
getValue('logo_path'
));
if (!
$path) { $form_state->
setErrorByName('logo_path',
$this->
t('The custom logo path is invalid.'
));
} } if ($form_state->
getValue('favicon_path'
)) { $path =
$this->
validatePath($form_state->
getValue('favicon_path'
));
if (!
$path) { $form_state->
setErrorByName('favicon_path',
$this->
t('The custom favicon path is invalid.'
));
} } } }