PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README
bd_contact.info.yml
bd_contact.install
bd_contact.links.task.yml
bd_contact.module
bd_contact.routing.yml

README

Update of code tutorial http://www.drupalwoo.com/content/blog/my-first-drupal-8-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 no longer an 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