Friday, 29 June 2018

New features in Drupal 8.

I am going to start describe few new things in Drupal 8 in easy way.

Now in drupal 8 version uses Symfony few Components, rather than all of Symfony. If you want to check the list of use components in druapl 8. You can check in 'core/composer.json' file.

  1. We will render/call all variables of twig file in double Curly Braces/Brackets, Syntax..  {{ write variable name here }}   

      2. For comment in twig file we have to use # keyword, Syntax..  

          {#{ write variable name here }#}   or   {#  commenting syntax  #}

 Note: If have any suggestions or issue regarding 'New features in Drupal 8' then you can ask by comments.


2 comments:

  1. Pls tell how to render text field in twig file

    ReplyDelete
    Replies
    1. Hi Abhishek,

      You can use multiple syntax for render text field in twig file,like..

      {{ content.field_machine_name[0] }}
      {{ content.field_machine_name }}
      {{ content.field_machine_name.0 }}

      Delete

How to resolve max execution time error in drupal ?

When you found error regarding 'max_execution_time' exceed, then you can follow steps for resolve this error: Steps:   You can put t...