Skip to content

vuchkov/example-custom-module-development-drupal-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Drupal 8 Custom Module

AddForm

  • use FormBase
  • change declaration buildForm, submitForm, validateForm (form_state is an object and no longer an array)
  • no arguments passed by the buildForm declaration

DeleteForm

  • getCancelUrl in stead of getCancelRoute
  • change declaration buildForm, submitForm, validateForm (form_state is an object and not array)
  • no arguments passed by the buildForm declaration

AdminController

  • content function returns array of 2 elements (text markup and a table)
  • l-function has changed. 1 argument is now a URL object

Local Tasks

  • use .links.task.yml
  • use base_route: system.admin_content

About

Drupal 8 (custom) module - Students (DB Example)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages