Problem/Motivation

Many elements lack granular suggestions out of the box. This forces themers to add many common suggestions manually on the custom theme via hook_theme_suggestions_HOOK().

Some common suggestions that might be reused are:

  • Users and view modes — suggestions based on the user entity combined with the active view mode (e.g., user--VIEW_MODE)
  • Views and displays — suggestions based on the view ID combined with the specific display ID (e.g., views--VIEW_ID--DISPLAY_ID)
  • Blocks and regions — suggestions based on the block plugin combined with the region it is placed in (e.g., block--REGION, block--REGION--PLUGIN_ID)

Issue fork artisan-3588694

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alejandro cabarcos created an issue. See original summary.

alejandro cabarcos’s picture

manuelbermudez made their first commit to this issue’s fork.

manuelbermudez’s picture

Assigned: manuelbermudez » alzz
manuelbermudez’s picture

Status: Active » Needs review
alzz’s picture

Status: Needs review » Reviewed & tested by the community

alzz’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.