Goals
- Know how to develop modules for Drupal, interact with the core, manage the router, forms, data model
Program
A resolutely Object-Oriented in-depth overhaul
The Symfony components included in Drupal
Presentation of the Drupal Console and Drush command line tools
Organization of Drupal 8
Multi-sites directories
YAML syntax: typing, escaping, sequence and mapping
Declare your module for Drupal with .info.yml
Declare your project with composer
Hook principle: hook_help in the .module file
Declare permissions
Declare your first page via a controller
Link our page to a URL via routing.yml
Create a menu link via links.menu.yml
Workshop: develop a first Drupal 8 page module
Return a rendering table
Define its template files via the theme hook
Pre-process the data to be injected into the template
Write the template for the Twig Atelier engine
: define the views of its module
Manage menus and
links Specific types of links: actions, local task, contextual
The plugin manager
The different types of plugins
Declare a block class
Make it available via the @Block annotation
Expose its configuration in the administration
Support the block configuration form
Workshop: develop the block
Create a configuration form
Define the form fields via Form API
Data validation and submission
Workshop: set up its administration page
Create a form
Configure the different types of fields
Validate the data submitted by the user
Alter the other forms
Alter existing services
Define own services
Inject dependencies
Presentation of Schema API
Declare a schema installation
Manage version upgrades
Presentation of Database API
Interact with database data via the QueryBuilder
Passing of the certification (if foreseen in the financing).
Duration
3 days
Price
£ 1736
Audience
Confirmed POO-PHP developer
Prerequisites
Have followed the Drupal webmaster training, expert PHP or equivalent knowledge
Reference
OPE100082-F
Sessions
Contact us for more informations about session date