Skip to content
Snippets Groups Projects

Issue #3336864: Replace entity and language options in url intance returned by...

4 files
+ 71
6
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -7,7 +7,6 @@ namespace Drupal\component_library\EventSubscriber;
use Drupal\component_library\Event\AddVariablesPlaceholderEvent;
use Drupal\component_library\Event\ReplaceVariablesPlaceholderEvent;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\user\UserInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
@@ -27,7 +26,7 @@ final class VariablesPlaceholderConfigEntity implements EventSubscriberInterface
public function onAddVariablesPlaceholder(AddVariablesPlaceholderEvent $event): void {
$item = $event->getItem();
if ($item instanceof ConfigEntityInterface && !$item instanceof UserInterface) {
if ($item instanceof ConfigEntityInterface) {
$event->setPlaceholder([
'#override_mode' => [
'#type' => 'override_config_entity',
Loading