Drupal 8 主题开发指南中文版
Introduction
1.
Foreword
1.1.
About me
1.2.
Licence
2.
Getting started
2.1.
Changes
2.2.
Coding standards
3.
Core themes
3.1.
Bartik
3.2.
Seven
3.3.
Stark
3.4.
Classy
3.5.
Stable
4.
Theme administration
5.
The Drupal 8 theme layer
5.1.
Theme engines
5.2.
The old theme layer
5.3.
PHPTemplate
5.4.
Twig
5.5.
From Drupal 7 to Drupal 8
6.
Theme Hooks and Theme Hook Suggestions
6.1.
hook_theme
6.2.
Theme Hook Suggestions
7.
Twig
7.1.
Twig basics
7.2.
Twig debug
7.3.
Template files
7.4.
/template folder
8.
Libraries
8.1.
History of libraries
8.2.
Advantage
8.3.
Attach a library in Twig
8.4.
Core libraries
9.
Javascript
9.1.
File Closure
9.2.
ESHint
9.3.
jQuery
9.4.
Multilingual in Javascript
9.5.
Theme function
9.6.
Drupal Behaviors
10.
Custom theme
10.1.
The /themes directory
10.2.
Creating an info file
11.
Breakpoints
11.1.
Breakpoints
11.2.
Responsive Images
Powered by
GitBook
Drupal 8 主题开发指南中文版
/templates 文件夹
因为
theme_
函数已经不复存在,几乎所有的核心主题(以及模块)都包含了新的名为
templates
的目录。在这个目录中保存了 Twig 的模板文件。