Articles

Նախքան սկսելը
Թարմացումը սկսելուց առաջ համոզվեք, որ կարդացել եք այս ուղեցույցի նախորդ էջերը՝

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

Drush-ը Drupal-ի համար հրամանների տողի և սցենարների ինտերֆեյսի շերտ է։ Drupal 8-ին Drush-ով թարմացումը հանդիսանում է դիտարկչի օգտատերերի միջերեսի այլընտրանք։ Drush-ով Drupal 8-ին թարմացումը շատ օգտակար է բարդ կայքերի միգրացիայի ժամանակ, քանի որ թույլ է տալիս միգրացիաները գործարկել առանձին և կատարել վերադարձ։

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

Drupal 6-ից մինչև 8
Ագրեգատորների կատեգորիաներ
Drupal 8-ում այլևս գոյություն չունի ագրեգատորների կատեգորիաների կոնցեպտը, ուստի դրանք չեն տեղափոխվել Drupal 8։
Թույլատրված պրոտոկոլներ
Drupal 8-ում պրոտոկոլները պահվում են կոնտեյների պարամետրի «filter_protocols» մեջ, ուստի եթե փոխել եք «filter_allowed_protocols» փոփոխականը, այն պետք է փոխանցեք services.yml ֆայլում։

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

Ստեղծեք ձեր նախնական փոխանցումները
- Ստեղծեք փոխանցումներ՝ օգտագործելով drush migrate-upgrade --configure-only, ինչպես նկարագրված է «Թարմացում Drush-ի միջոցով» բաժնում։
- Համոզվեք, որ ունեք aconfig/syncdirectory, որտեղ կպահպանվի հաջորդ քայլը։
- Արտահանեք փոխանցումները՝ օգտագործելով drush config:export։
- Ստեղծեք ձեր սեփական փոխանցման մոդուլը։
- Պատճենեք միայն այն YML ֆայլերը, որոնք ցանկանում եք օգտագործել՝ config/sync գրադարանից դեպի ձեր նոր մոդուլի c

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

Drupal-ի 8-միջուկային «Migrate Drupal» մոդուլը ապահովում է API աջակցություն Drupal-ից Drupal փոխանցման համար, իսկ «Migrate Drupal UI»-ն առաջարկում է պարզ օգտագործողի միջերես՝ հին Drupal տարբերակներից թարմացման համար։

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

Դինամիկ հարցումները վերաբերում են այն հարցումներին, որոնք Drupal-ը ստեղծում է դինամիկ, այլ ոչ թե ներկայացված են որպես հստակ SQL տող: Ներդրման, թարմացման, ջնջման և սինթեզման բոլոր հարցումները պետք է լինեն դինամիկ: Ընտրողական հարցումները կարող են լինել ստատիկ կամ դինամիկ: Այսպիսով, «դինամիկ հարցում» սովորաբար նշանակում է դինամիկ Select հարցում։

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.

Select հարցումների կառուցողը աջակցում է արտահայտությունների օգտագործմանը դաշտերի ցուցակում։ Արտահայտությունների օրինակներ են՝ «տարիքի կրկնապատիկ դաշտը», «ամեն անվան դաշտերի քանակը» և վերնագրի դաշտի ենթախոսքը։ Հիշեք, որ բազմաթիվ արտահայտություններ կարող են օգտագործել SQL ֆունկցիաներ, և ոչ բոլոր SQL ֆունկցիաները ստանդարտացված են բոլոր տվյալների բազաների համար։ Մոդուլի մշակողը պետք է համոզվի, որ օգտագործվում են միայն տվյալների բազաների հետ համատեղելի արտահայտություններ։ (Տես՝ Ֆունկցիաների և օպերատորների ցանկը)


Ավելացնել դաշտ
Select հարցման մեջ դաշտ ավելացնելու համար օգտագործեք addField() մեթոդը՝

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.