- Issue created by @hawkeye.twolf
Sometimes a variant doesn't need its own template. E.g., when the only change is adding a class based on the presence of the "variant" context variable.
Declare a variant in the *.component.yml that doesn't have its own template and see this warning appear:
Warning: file_get_contents(themes/custom/wildrose/templates/components/molecules/topics/topics--dark.twig): Failed to open stream: No such file or directory in Drupal\cl_components\Component\ComponentMetadata->detectNamedBlocks() (line 295 of /var/www/html/web/modules/contrib/cl_components/src/Component/ComponentMetadata.php).
Check the file exists before performing some logic?
Active
1.0
Code