- Drupal 8 Module Development
- Daniel Sipos
- 192字
- 2021-07-02 15:45:11
Forms
Unless your site has three pages and five paragraphs of text, the likelihood that you will need to capture user input via some type of form is very high. Also, if you've been coding PHP applications, you know how forms have always been a pain from the point of view of securely and efficiently rendering and processing the submitted data. As soon as you use a PHP framework such as Symfony, you will note that an API is in place to take much of that load off your shoulders.
The same goes with Drupal 8 and its powerful Form API. Historically, it has been a great abstraction over having to output your own form elements and deal with posted values. It allows you to define your own form definition in OOP and handle validation and submission in a logical way. Its render and processing is taken care of by Drupal securely, so you don't have to worry about any of that. In Drupal 8, theming form elements have become much easier than in previous versions.
In this book, we will encounter some forms and see how they actually work in practice.
- Angular UI Development with PrimeNG
- Full-Stack Vue.js 2 and Laravel 5
- 深度強(qiáng)化學(xué)習(xí)算法與實(shí)踐:基于PyTorch的實(shí)現(xiàn)
- C語(yǔ)言程序設(shè)計(jì)
- 青少年學(xué)Python(第1冊(cè))
- MySQL入門很輕松(微課超值版)
- 深入理解BootLoader
- Simulation for Data Science with R
- 會(huì)當(dāng)凌絕頂:Java開發(fā)修行實(shí)錄
- Microsoft HoloLens By Example
- Flask開發(fā)Web搜索引擎入門與實(shí)戰(zhàn)
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- Mastering R for Quantitative Finance
- 語(yǔ)義Web編程
- Flask Web開發(fā)實(shí)戰(zhàn):入門、進(jìn)階與原理解析