What’s new in Drupal 8 and how you can contribute

Hey all now days Drupal community are very hard at work in developing Drupal 8 . If you are passionate about Drupal and want to contribute to Drupal 8 and not finding any source to start then this is blog can help you.

What we will cover in this blog :-

  1. How to take Drupal 8 stable core to your local machine and start developing with it .
  2. What’s new in Drupal 8 ?
  3. Some explanation of changes with code.

Below are the steps to setup Drupal 8 stable core to local machine . I am hoping you have GIT installed in your machine .

  1. git clone --branch 7.x http://git.drupal.org/project/drupal.git
  2. cd drupal
  3. git checkout 8.x

If you want to go back to your D7 version just do ” git checkout 7.x ” . For updating your Drupal 8 core do “git pull ” . It will update your Drupal 8 code instance .

You can also do if you just want D8 code base . idea for above things are just to understand the code architecture of D7 and D8 . Below you will only get D8 code base instance .

1. git clone –recursive –branch 8.x
http://git.drupal.org/project/drupal.git
2. cd drupal

A useful link is also http://drupal.org/node/3060/git-instructions/8.x

Now you can start building your custom modules , Themes for Drupal 8 .

In Drupal 8 till now what community has updated has many changes in core . Below is link of list of changes in Drupal 8 .

http://drupal.org/list-changes/drupal

You can check out each changes and start writing your code with Drupal 8 .

Below are some other links which give you information about Drupal 8 development , roadmap , Documentation , code , contributors , IRC channels , meeting times etc.
This is link to video which drive you through some custom code development in Drupal 8 .
Some other links for understanding architecture and developing in Drupal 8 :-

Menu change example :- In D8 menu links are converted into entities . So in order to create new menu in Drupal 8 you can do like this .

<?php
$menu_link = entity_create('menu_link', array(
'link_title' => t('Home'),
'link_path' => '<front>',
'menu_name' => 'main',
));
$menu_link->save();
?>
Saving menu links with Drupal 8 :-
<?php
$menu_links = entity_load_multiple_by_properties('menu_link', array('link_path' => $link_path));
foreach ($menu_links as $menu_link) {
$menu_link->link_title = t('New link title');
$menu_link->save();
}
?>
Some changes are also happens with hooks like :-
hook_menu_link_alter() has been replaced by hook_menu_link_presave()
hook_translated_menu_link_alter() has been replaced by hook_menu_link_load().
I hope this blog is helpful for you . Please feel free to comment and send your queries to me .
Advertisements

14 thoughts on “What’s new in Drupal 8 and how you can contribute

  1. Nice article, Giving Nice advice us about Drupal 8. In this Drupal 8 they provide one good feature which is Better Markup with HTML5 feature is good for making websites fully functional and compatible with mobile screen.

  2. Superb site you have here but I was curious about if you knew of
    any community forums that cover the same topics talked
    about in this article? I’d really love to be a part of group where I
    can get comments from other experienced individuals that share the same interest.

    If you have any suggestions, please let me know.
    Thanks!

  3. Hi there, I believe your blog may be having internet browser compatibility problems.
    When I look at your website in Safari, it looks fine however, if opening in Internet Explorer, it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Other than that, fantastic blog!

  4. Simply wish to say your article is as amazing. The clarity in your submit is just spectacular and that i can think you’re an expert on this subject. Fine together with your permission let me to clutch your RSS feed to keep updated with imminent post. Thanks one million and please keep up the rewarding work.

  5. All I am wishing is no installation problems. Many people has complaint that they had lots of problems while installing drupal 7. Lets see what Drupal developers have to offer in Drupal 8.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s