July 2017
Intermediate to advanced
456 pages
11h 32m
English
The *.info.yml file is required to create any theme. It helps us to notify Drupal that a theme exists and provides information to the Appearance interface that a theme is available to be installed. We will be working with *.info.yml files when creating any theme, so let's look at the makeup of a basic example.info.yml file:
name: Example description: 'An Example theme.' type: theme package: Custom base theme: classy core: 8.x libraries: - example/global-styling regions: header: Header primary_menu: 'Primary menu' secondary_menu: 'Secondary menu' breadcrumb: Breadcrumb help: Help highlighted: Highlighted content: Content sidebar_first: 'Left sidebar' sidebar_second: 'Right sidebar' footer: Footer page_top: ...
Read now
Unlock full access