+ D7 contrib modules D8 build fairly sophisticated sites without having to install 30+ contributed modules as we did in Drupal 7. August 19, 2015 www.ikonami.net
files like script, misc, themes etc. 2. /libraries - 3rd party libraries, i.e. “wysiwyg editor” 3. /modules – To place contributed and custom modules 4. /profile - contributed and custom profiles 5. /themes - contributed and custom (sub)themes 6. sites/[domain OR default]/{modules, themes} - Site specific modules and themes can be moved into these directories to avoid them showing up on every site 7. sites/[domain OR default]/files - Files directory August 19, 2015 www.ikonami.net
file for component i.e. “.info.yml”. So all .info files are moved to .info.yml files. The new file extension is .info.yml. This applies to Modules Themes Profiles August 19, 2015 www.ikonami.net
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
–A new type key is now required with values that indicate the type of extension. Use module, theme or profile. For example: –type: module • Remove files[] entries –Remove any files[] entries. Classes are now autoloaded. • Convert configure links to route names –In Drupal 8, specify the administrative configuration link using the route name instead of the system path. • Drupal 7 –configure = admin/config/system/actions • Drupal 8 –configure: action.admin August 19, 2015 www.ikonami.net
My test Module type: module description: My first demo module to test my development approach. package: Web services version: VERSION core:8.x dependencies: -rest -serialization
structure so you need to create your controller file under /modules/hello_d8/src/Controller/HelloD8Controller.php <?php namespace Drupal\hello_d8\Controller; use Drupal\Core\Controller\ControllerBase; class HelloD8Controller extends ControllerBase { public function pageCallback () { return [ '#markup' => $this->t('Welcome Drupal 8 uesers') ]; } } August 19, 2015 www.ikonami.net