I need to add some external and local CSS and JavaScript files to a form, but I can't seem to find the right way to do this. Do I simply add the paths and URLs for the JS and CSS files?
I assume $form['#attached']['css'][]
and $form['#attached']['js'][]
are the correct places to do this, so they get reloaded on form rebuilds. I seem to be missing something.