Extracto de la transcripción automática del vídeo realizada por YouTube.
just in the you I also know and see what's happening to project are not tight deadlines and the kind of horrible thing that happens during those times and and just before we start I just want to know a bit about how familiar you are because that's
a beginner session so who can write custom module yeah that's great who knows about render our ways that's great we knows about attached yeah well well done who knows about hook library yeah little bit less all right so i will need 10 minutes of your
we use in Drupal 8 i'll go into the why afterwards but for now just bear with me search and replace second thing you need to search and replace is Drupal that same but prototype now it's just Drupada team so that might be a bit less common but surprise
what we see usually in module is that you use Drupal at GS to put your script file on the page all that you use the scripts functionality of the info file these for Drupal 8 don't do that because that's going to be broken and actually right now in
those other things to work so first you have the my script so that's the key you will be using to reference that in other places of the code so when you use attached for example then you say my script is this file it can be several files you can have CSS
files as well that depends that are included by your library and then you have the dependencies so this one I'm going to go back to it afterwards that's very very important in Drupal 7 the libraries you can suppose are available on the page are jquery
drupal drupal settings and jquery dot ones so when you declare you live with your library like that it's just like it was in Drupal 7 now bit more concrete example let's say I have a page that's a callback for some menu hook somewhere but not a
menu who can do polite but where do you get what I mean so that's in Drupal 7 I do drupal Jess my module past scripta Jess and boom my script is on the page but that you shouldn't be doing anymore because I'd bright several things why can't
then in the my page function you are you would use attached with library and my module my script as so it's you know nested array is that very Drupal can't really go around that is everything clear so far all right now there's a patch to make this
a bit more user-friendly because writing PHP array that's not very fun we have your file and if this page gets in you will be able to declare your libraries in the y ml file so that's still science fiction for now but hopefully that will be you know
[ ... ]
Nota: se han omitido las otras 2.403 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.