Drupal at your fingertips: A Drupal 9 & 10 developer's quick code reference

Автор: literator от 19-09-2023, 21:37, Коментариев: 0

Категория: КНИГИ » WEB-РАЗРАБОТКИ

Название: Drupal at your fingertips: A Drupal 9 & 10 developer's quick code reference
Автор: Selwyn Polit
Издательство: Leanpub
Год: 2023-09-12
Страниц: 566
Язык: английский
Формат: pdf (true), epub
Размер: 20.6 MB

Drupal 9/10 developers reference guide with tested proven code used in the real world for secure, performant, scalable websites.

This book is a quick reference for developers creating Drupal sites. While working on such sites during my career, I have gathered a large collection of notes and code which I use for my reference. I hope it will be useful for you, too. I've provided tested code samples for almost every topic. My goal is to save you having to dig through lots of search results to find the code snippet you need to get your job done.

The Batch API provides very useful functionality that lets you do work by breaking it into pieces to avoid PHP timeouts, etc. Usually, you’ll do this by creating a group of node id’s (using array_chunk)to be processed and use the batch API to process those arrays (chunks) of ids. You can also provide code that will let it figure out how much work to do and stop itself.

In addition, you create a function to handle things once all the chunks are complete. You can also give the Batch API a bunch of work to do and have it figure out for itself when it is finished. Also, it’s useful that the Batch API uses the Drupal Queue system, allowing it to pick up where it left off in case of problems. You can use the Batch API in controllers, forms, hook updates, and Drush commands.

Скачать Drupal at your fingertips: A Drupal 9 & 10 developer's quick code reference




ОТСУТСТВУЕТ ССЫЛКА/ НЕ РАБОЧАЯ ССЫЛКА ЕСТЬ РЕШЕНИЕ, ПИШИМ СЮДА!


Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.