Problem/Motivation
Tokens are not replaced in the url setting of the button pattern.
In app/modules/contrib/ui_patterns_settings/src/Element/PatternSettings.php::processSettings():
$entity = $context->getProperty('entity');
But in app/modules/contrib/ui_patterns_entity_links/src/Plugin/Block/LinkBlock.php:
$build['#context'] = [
'type' => 'entity_link',
'entity_type' => $this->getEntity()->getEntityTypeId(),
'entity_id' => $this->getEntity()->id(),
'link' => $rel,
];
The entity is not passed into the build context.
Issue fork ui_patterns_entity_links-3339671
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
Comment #3
grimreaperComment #4
grimreaperComment #5
grimreaperComment #7
grimreaperComment #8
pdureau commentedGood catch! We need to standardize those #context keys ans strategies among all the UI Patterns ecosystem.
Comment #10
pdureau commented