Академический Документы
Профессиональный Документы
Культура Документы
Speaker
Muhammad Asghar Khan
Drupal Consultant - Ikonami
Drupal Developer
7 years experience in IT
Zend Certified PHP Eng.
Drupal Module contributor
www.ikonami.net
Agenda
www.ikonami.net
www.ikonami.net
Actions
Ban
Basic Authentication
Block Content
Breakpoint
CKEditor
Config
Config Translation
Content Translation
Datetime
Editor
Entity Reference
HAL
History
Language
Link
Menu Link Content
Menu UI
Migrate
Migrate Drupal
Options
Quickedit
Responsive Image
Rest
Serialization
Telephone
Text
Tour
Views
Views UI
www.ikonami.net
Blog
Dashboard
Menu
Open ID
Overlay
PHP
Poll
Profile
Translation
Trigger
www.ikonami.net
ot
h
ns
e
re
Sc
www.ikonami.net
www.ikonami.net
www.ikonami.net
www.ikonami.net
.info.yml syntax
In .info file we used equal(=) for assigning and square
brackets([]) for array. In .info.yml we will use colon(:) for
assigning and start space and dash for array.
For the most part, change all = to :.
For arrays (e.g. dependencies[] = node), use the
following format in Drupal 8:
dependencies:
- node
In Drupal 7 we use ; for Comments BUT in Drupal 8 we
will use # for Comments.
August 19, 2015
www.ikonami.net
Drupal 7
configure = admin/config/system/actions
Drupal 8
configure: action.admin
August 19, 2015
www.ikonami.net
ot
h
ns
e
re
Sc
www.ikonami.net
Drupal 8 - .info.yml
ot
h
ns
e
re
Sc
www.ikonami.net
www.ikonami.net
www.ikonami.net
Create Menu
In drupal 8 hook_menu has been removed and introduced
Routing-Approach.
Create routing file like [your_module].routing.yml
/modules/hello_d8/hello_d8.routing.yml
hello_d8.page:
path: /hello-d8/page
defaults:
_controller: 'Drupal\hello_d8\Controller\HelloD8Controller::pageCallback
_title: 'Hello Drupal 8
Requirements:
_permission: 'access content'
August 19, 2015
www.ikonami.net
www.ikonami.net
Drupal 8 Page
ot
h
ns
e
re
Sc
www.ikonami.net
www.ikonami.net
www.ikonami.net
ot
h
ns
e
re
Sc
www.ikonami.net
www.ikonami.net
www.ikonami.net
Your Block
www.ikonami.net
Thank You
conversation@ikonami.net