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

  • Drupal 9 Module Development
  • Daniel Sipos Antonio De Marco
  • 188字
  • 2021-06-11 18:36:04

Chapter 4: Theming

The most obvious part of Drupal's theming system is the Appearance admin page found at admin/appearance, which lists all the themes installed on your website:

Figure 4.1: Appearance admin page

Figure 4.1: Appearance admin page

When you choose a theme from the Appearance page, you are applying a specific graphic design to your website's data and functionality. However, the applied theme is in reality only a small part of the entire theming layer.

This book focuses mostly on building modules that encapsulate chunks of functionality. However, since we're ultimately building a web application, everything output by our functionality will need to be marked up with HTML. In Drupal, this process of wrapping data in HTML and CSS is called theming.

In this chapter, we will discuss how our module integrates with the theme layer. We will talk about the architecture of the system, theme templates, hooks, render arrays, and others. Then, we will provide some practical examples.

The major topics we will cover in the chapter are as follows:

  • Theme hooks, templates, and suggestions
  • Render arrays and layouts
  • Assets and libraries
  • Theming our Hello World module using the lessons learned
主站蜘蛛池模板: 满洲里市| 河南省| 紫金县| 灵武市| 玛沁县| 广元市| 灵丘县| 晴隆县| 衡南县| 鹤峰县| 盘山县| 剑川县| 灌阳县| 修水县| 海伦市| 大荔县| 铜鼓县| 襄汾县| 靖西县| 兰坪| 建瓯市| 屏东县| 泗水县| 皋兰县| 吉林市| 高密市| 辽源市| 蒙城县| 马山县| 吉木乃县| 十堰市| 拉孜县| 朝阳区| 扎兰屯市| 四平市| 宁晋县| 海林市| 双鸭山市| 牙克石市| 晋中市| 敖汉旗|