How to get a twig template suggestion for a custom block?
By default, Drupal does not have a twig template suggestion for custom block types. You can use a hook to get a suggestion easily.
drupal web developer
Drupal is a powerful and easily editable content management system (CMS) that allows users to create and manage content on one or more websites. It is open source and used by millions of people and organizations. It benefits from a very large community of developers and users. Discover on this blog articles on Drupal modules, tips and code to optimize and add features to Drupal.
By default, Drupal does not have a twig template suggestion for custom block types. You can use a hook to get a suggestion easily.
The paragraph module improves content management on Drupal. By default, the display of paragraphs can cause ergonomic problems (very long editing page, no overview of paragraphs, difficulty in ordering, etc.). Here is a solution to improve the presentation of paragraphs.
Find out how to hook a form from the paragraph module in the BO or on the front to add classes, a placeholder, etc. The method is identical to the hooks for Form API forms but the hook is specific to this module.
To remove local changes with git that you haven't committed, you can use the git checkout command. This command allows you to revert to a previous version of your working directory.