If user by mistakely added space before or after <none> , then title will not hide.
So we have to trim title value so it can work properly

Comments

Hardik_Patel_12 created an issue. See original summary.

hardik_patel_12’s picture

Status: Active » Needs review
StatusFileSize
new627 bytes

Kindly follow a patch.

matsbla’s picture

Status: Needs review » Needs work

Hmm.
In that case, to keep it consistent, we should do the same for the view field display:
https://git.drupalcode.org/project/none_title/blob/8.x-1.x/src/Plugin/vi...
If not the title will still be displayed in views.

hardik_patel_12’s picture

Status: Needs work » Needs review
StatusFileSize
new707 bytes
new1.27 KB

Kindly follow a new patch.

snehalgaikwad’s picture

Status: Needs review » Reviewed & tested by the community

Patch is working fine. Title is getting hidden in both views and node pages even after adding spaces.

matsbla’s picture

Adding tests

  • matsbla committed 3167bf3 on 8.x-1.x
    Issue #3102313 by Hardik_Patel_12, matsbla: If title added as <none>...
matsbla’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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