Drupal 8 Module Development: Build modules and themes using the latest version of Drupal 8, 2nd
Daniel Sipos
- 出版商: Packt Publishing
- 出版日期: 2019-03-27
- 定價: $1,380
- 售價: 6.0 折 $828
- 語言: 英文
- 頁數: 580
- 裝訂: Paperback
- ISBN: 1789612365
- ISBN-13: 9781789612363
-
相關分類:
Drupal
立即出貨(限量) (庫存=1)
相關主題
商品描述
Key Features
- Explore a plethora of Drupal 8 APIs and get the best out of them using the power of PHP coding
- Learn to implement efficient data management and data security by creating dedicated modules for it.
- Stay up to date with the changes introduced in the new Drupal 8 releases
Book Description
Drupal 8 comes with a release cycle that allows for new functionality to be added at a much faster pace. However, this also means code deprecations and changing architecture that you need to stay on top of. This book updates the first edition and includes the new functionality introduced in versions up to, and including 8.7.
The book will first introduce you to the Drupal 8 architecture and its subsystems before diving into creating your first module with basic functionality. You will work with the Drupal logging and mailing systems, learn how to output data using the theme layer and work with menus and links programmatically. Then, you will learn how to work with different kinds of data storages, create custom entities, field types and leverage the Database API for lower level database queries.
You will further see how to introduce JavaScript into your module, work with the various file systems and ensure the code you write works on multilingual sites. Finally, you will learn how to programmatically work with Views, write automated tests for your functionality and also write secure code in general.
By the end, you will have learned how to develop your own custom module that can provide complex business solutions. And who knows, maybe you'll even contribute it back to the Drupal community.
What you will learn
- Develop Drupal 8 modules that do all the things you want
- Master numerous Drupal 8 sub-systems and APIs in the process
- Model, store, manipulate and process data to serve your purposes
- Display data and content in a clean and secure way using the Drupal 8 theme system
- Test your business logic to prevent regressions
- Stay ahead of the curve and write code following the current best practices
Who this book is for
The primary target of this book is Drupal developers who want to learn how to write modules and develop in Drupal 8. It is also intended for Drupal site builders and PHP developers who have basic Object Oriented Programming skills.
A little bit of Symfony experience is helpful but not mandatory.
商品描述(中文翻譯)
主要特點
- 探索豐富的Drupal 8 API,並利用PHP編碼的威力獲得最佳效果
- 通過創建專用模塊來實現高效的數據管理和數據安全
- 保持對新版Drupal 8發布的變化的最新了解
書籍描述
Drupal 8的發布週期允許更快地添加新功能。然而,這也意味著代碼廢棄和架構變更,您需要跟上這些變化。本書更新了第一版,包括版本8.7及之前引入的新功能。
本書首先介紹Drupal 8的架構和子系統,然後深入介紹如何創建具有基本功能的第一個模塊。您將使用Drupal的日誌和郵件系統,學習如何使用主題層輸出數據,以及如何以編程方式處理菜單和鏈接。然後,您將學習如何使用不同類型的數據存儲,創建自定義實體、字段類型,並利用數據庫API進行低級數據庫查詢。
您還將了解如何將JavaScript引入模塊中,使用各種文件系統,並確保您編寫的代碼在多語言站點上運行。最後,您將學習如何以編程方式使用Views,為功能編寫自動化測試,並編寫安全的代碼。
通過本書,您將學會開發自己的自定義模塊,提供複雜的業務解決方案。誰知道,也許您甚至會將其貢獻給Drupal社區。
您將學到什麼
- 開發能夠滿足您需求的Drupal 8模塊
- 精通Drupal 8的多個子系統和API
- 對數據進行建模、存儲、操作和處理,以滿足您的目的
- 使用Drupal 8主題系統以清晰和安全的方式顯示數據和內容
- 測試您的業務邏輯以防止回歸
- 保持領先並遵循當前的最佳實踐編寫代碼
本書適合對象
本書的主要目標讀者是希望學習如何編寫模塊和在Drupal 8中開發的Drupal開發人員。它也適用於Drupal站點構建者和具有基本面向對象編程技能的PHP開發人員。
有一點Symfony經驗會有所幫助,但不是必需的。
目錄大綱
- Developing for Drupal 8
- Creating Your First Module
- Logging and Mailing
- Theming
- Menus and Menu Links
- Data Modeling and Storage
- Your Own Custom Entity and Plugin Types
- The Database API
- Custom Fields
- Access Control
- Caching
- JavaScript and the Ajax API
- Internationalization and Languages
- Batches, Queues, and Cron
- Views
- Working with Files and Images
- Automated Testing
- Drupal 8 Security
目錄大綱(中文翻譯)
- 開發 Drupal 8
- 建立你的第一個模組
- 記錄和郵件
- 主題設計
- 選單和選單連結
- 資料建模和儲存
- 自訂實體和外掛程式類型
- 資料庫 API
- 自訂欄位
- 存取控制
- 快取
- JavaScript 和 Ajax API
- 國際化和語言
- 批次處理、佇列和排程
- 檢視
- 處理檔案和圖片
- 自動化測試
- Drupal 8 安全性