How to give a naming convention of the twig in Drupal8 views?

1. Let’s start with View Creation

Go to Manage => Structure => Views => click on +Add view

2. Need to create Page or Block for Content data

Once you have saved the view page data, the page will be redirected to the view Display configuration section having page and block. Here you have multiple configurations like title, fields, content, filter criteria, sort criteria.

3. Firstly, Go through the inbuild views template names before make own

We have some parameters (machine names) like that we gave at the time of creation.

4. Renaming the custom view twig template files

To get to know more information for renaming the customer twig templates then read the full article here.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Siddharth Rastogi

Siddharth Rastogi

41 Followers

I am a full stack developer, I have an expertise in Web Development. I write tech stuff and share my knowledge with others with the help of articles.