官术网_书友最值得收藏!

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 or Laravel, 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 rendering 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 has become much easier than in previous versions.

In this book, we will encounter some forms and see how they actually work in practice.

主站蜘蛛池模板: 邻水| 盖州市| 高碑店市| 都兰县| 沅江市| 东港市| 龙海市| 陆河县| 蒙山县| 来宾市| 清原| 和田县| 普格县| 红原县| 平乐县| 福泉市| 龙州县| 阿拉善盟| 井陉县| 博乐市| 连江县| 蒲江县| 木里| 德惠市| 余姚市| 泰宁县| 灌阳县| 鹿邑县| 商丘市| 阳新县| 章丘市| 栖霞市| 武穴市| 福贡县| 宁海县| 霍州市| 陈巴尔虎旗| 柏乡县| 五峰| 郧西县| 乌鲁木齐市|