Skip to main content

Posts

Showing posts from May, 2016

Introduction About Drupal Console , How to install and use it

After applying these commands on your terminal , the command line interface (CLI) looks like this, (I am using Linux ubuntu os) If not then resolve the issues and warning Now the drupal console is configured on your machine successfully, so just download drupal-8 and install it on your machine by drupal console, # Download, and install Drupal 8: drupal chain -- file = ~ / . console / chain / quick - start . yml   # Create a new Drupal 8 project: drupal site : new drupal8 . first_project (Where first_project is the name of the drupal project)   # Lists all available commands of drupal console: drupal list                              

Naming Convention on drupal-8 module development,

Before going to start working on drupal 8, Today i will explain you the naming conventation of the drupal module development  First Step:- to create a new folder for new D-8 module,  sites/all/custom/{module_name} OR sites/all/modules/{module_name} That is the standard way to create custom module and themes, now choose the name of the module , Always remember module machine name and module folder name both are different thing, and we can choose diffrent foldername rather than same module machine name, lets suppose, my module folder name is sites/all/custom/ HelloWorld while my module machine name is hello_world, When we are going to choose the module machine name, there are some following rules to keep in mind, 1- module machine name always start with letters, 2- module machine name must contain only lower-case letters and underscores. 3- it should be unique , your module machine name may not have used in any module/theme or profile, 4- it may not have the some pres...