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
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Title_with_space_not_hiding_title-3102313-4-with-tests.patch | 2.59 KB | matsbla |
| #4 | Title_with_space_not_hiding_title-3102313-4.patch | 1.27 KB | hardik_patel_12 |
| #4 | interdiff-3102313-2-4.txt | 707 bytes | hardik_patel_12 |
Comments
Comment #2
hardik_patel_12 commentedKindly follow a patch.
Comment #3
matsbla commentedHmm.
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.
Comment #4
hardik_patel_12 commentedKindly follow a new patch.
Comment #5
snehalgaikwad commentedPatch is working fine. Title is getting hidden in both views and node pages even after adding spaces.
Comment #6
matsbla commentedAdding tests
Comment #8
matsbla commented