Closed (fixed)
Project:
Profile
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2017 at 09:22 UTC
Updated:
21 Mar 2019 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
olofbokedal commentedPatch implements the steps mentioned in the issue description.
Comment #3
olofbokedal commentedFirst patch didn't include new file. Fixed.
Comment #4
zerolab commentedComment #6
olofbokedal commentederror: profile.links.contextual.yml: No such file or directoryaccording to the failed test.This file should get created. Anyone knows how to avoid this error? Patch applied cleanly for me but perhaps it needs to be created in a different way.
Comment #7
maaty388 commentedI believe it has to do something with tests, correct me if I am wrong. Your patch is working fine, gets applied and everything so this is the only thing that I can think of right now.
Comment #8
jwilson3trigger tests again maybe?
Comment #10
bojanz commentedYou'll want to retest this on Drupal 8.5.0, which now automatically adds contextual links, making at least the ViewBuilder portion of the patch unnecessary.
Comment #11
szeidler commentedWith Drupal 8.5.0 and https://www.drupal.org/node/2928555 it seems, that only
{{ title_suffix }}is required for making the contextual links working for me. Could you review the reduced patch?Comment #12
mglamanPrefix and suffix are defaults. May as well add them both, even we are not rendering the profile label/title separate.
Comment #13
mglamanNevermind, here is what media.html.twig has
Let's just copy them.They prove the existing patch is all we need.Comment #14
mglamanHere is #11 with the links from #3 (otherwise nothing rendered.)
Comment #15
mglamanAttaching a screenshot for good measure.

Comment #17
mglamanCommitted! Thanks, everyone.