Book description
If you’re a web programmer, your experiences have taught you certain lessons—and only some of them apply well to Drupal. Drupal has its own set of programming principles that require a different approach, and many programmers make mistakes when relying on skills they’ve used for other projects. This book will show you which programming techniques you can use—and which you should avoid—when building web applications with this popular content management framework.
Updated to cover both Drupal 7 and Drupal 8, the guidelines in this book demonstrate which programming practices conform to the "Drupal way" and which don’t. The book also serves as an excellent guide for Drupal 7 programmers looking to make the transition to Drupal 8.
Table of contents
- Preface
- 1. Overview of Drupal
-
2. Drupal Programming Principles
- Principle: Drupal Is Alterable
- Principle: Drupal Separates Content, Configuration, and State Data
- Principle: Drupal Is International
- Principle: Drupal Is Accessible and Usable
- Principle: Drupal Is Database-Independent
- Principle: Drupal Is Secure; User Input Is Insecure
- Principle: Drupal Code Is Tested and Documented
- 3. Common Drupal Programming Mistakes
-
4. Drupal Programming Examples
-
Registering for URLs and Displaying Content
- Registering for a URL in Drupal 7
- Altering a URL Registration in Drupal 7
- Registering for a URL in Drupal 8
- Providing Administrative Links
- Altering Routes and Providing Dynamic Routes in Drupal 8
- Registering a Block in Drupal 7
- Registering a Block in Drupal 8
- Creating Render Arrays for Page and Block Output
- Render Arrays in Drupal 8
- Generating Paged Output
- Using the Drupal Form API
- Programming with Ajax in Drupal
- Programming with Entities and Fields
- Creating Views Module Add-Ons
- Creating Rules Module Add-Ons in Drupal 7
- Programming with CTools in Drupal 7
-
Registering for URLs and Displaying Content
- 5. Programming Tools and Tips
- Index
Product information
- Title: Programmer's Guide to Drupal, 2nd Edition
- Author(s):
- Release date: October 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491911464
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …
book
Modern Full-Stack Development: Using TypeScript, React, Node.js, Webpack, and Docker
Explore what React, Node, TypeScript, Webpack, and Docker have to offer individually, and how they all …
book
Head First Git
What will you learn from this book? Many people who use Git rely on "recipes"--copying and …