Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks entity_autocomplete configs in Drupal 9 #7

Open
ainsofs opened this issue Jul 26, 2021 · 0 comments
Open

Breaks entity_autocomplete configs in Drupal 9 #7

ainsofs opened this issue Jul 26, 2021 · 0 comments

Comments

@ainsofs
Copy link

ainsofs commented Jul 26, 2021

When I use below code. All bundles are displayed regardless of the values specified in 'target_bundles'. Uninstalling the module fixes it.

core: Drupal 9.2.2

$form['participant'] = [
  '#type' => 'entity_autocomplete',
  '#title' => $this->t('Participant'),
  '#weight' => '0',
  '#target_type' => 'node',
  '#selection_handler' => 'default',
  '#selection_settings' => [
    'target_bundles' => ['person'],
  ],
  '#tags' => TRUE,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant