Drupal 8/9 check the presence of a specific class in the twig

We have to check the presence of certain classes in the HTML element and then we do the respective work as per the need, we can achieve it with this snippet.
copy-icon

Comments

Authors

Read Next