Monday 11 March 2019

Features of Drupal 8 Over Drupal 7

Drupal 8 features

OOPS concepts:

Drupal 8 is based on Object Oriented Programming concepts for most part of the system. It uses Symfony freamework which makes code easy to maintain, scale and reuse.
Symfony componens used in Drupal 8
  • ClassLoader
  • Console
  • CssSelector
  • DependencyInjection
  • EventDispatcher
  • HttpFoundation
  • HttpKernel
  • Process
  • Routing
  • Serializer
  • Translation
  • Validator
  • Yaml
Drupal 7 is based on procedural programming.

Included Core modules

  • Views
  • CKEditor module
  • Telephone module
  • Datetime module
  • Email Field
  • Link module
  • Inline Form Errors module
  • Quick Edit module
  • Contextual Links module
  • Breakpoint module
Above are some modules which are contributed in Drupal 7 and included as core module in Drupal 8. 

Theme Engine

Drupal 8 uses "twig" template engine while Drupal 7 uses "phptemplate" engine. Twig is a PHP based theme engine.

Inline Editor

This functionality helps in editing content without going to its edit page. if you want to update some content of body field then click edit and update content.

CKEditor

CKEditor is a visual HTML editor used for editing web pages. This simplify the content creation feature by providing common word processor features directly to web page.

Responsive Images


Multilingual

Drupal 8 having multilingual functionality with the help of it

  • Having built-in user interface that help in creating multiple translations of anything in the system
  • Software translation updates automatically

REST 

Representational State transfer. It is used to interact with other applications.
In Drupal 7, we need to use multiples modules to create web service. But Drupal 8 includes modules in core to create web services. Modules are HAL, HTTP Basic Authentication, RESTful web services, and serialization. It is mainly used for creating, updating, deleting resource.

Field Introduced

  • Email: This field automatically validates the e-mail. It generates a "mailto:" to link while displaying e-mail address.
  • Telephone: This field generated "tel:" while displaying telephone no. This makes it easy to use for apps like skype or other phone system

Built-in Configuration Management

Drupal 8 having built-in configuration management. With this feature, it is easy to move fields, views, content types, and similar configuration elements from local environment to upper environment. These configuration data store in files and can be manage with GIT. With the help of configuration synchronization, these configuration goes to database.

Website Loading speed improvement

Drupal 8 improved loading speed by caching entities. When uses accesses any previously accessed web page, then this is served from cache.

In Drupal 8, whenever javascript is required to page load, then it gets loaded otherwise it is not loaded.

Some other points:

  1. Drupal 8 directory structure is different from Drupal 7. 
     

  2. Custom block can be created as plugin in Drupal 8 while in Drupal 7 there was hooks to create custom block.
  3. In Drupal 7, to register path, there is hook but in Drupal 8, we have to create a routing file and then define controller/form etc for that route.

No comments:

Post a Comment