You are here

public function Broken::buildConfigurationForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken::buildConfigurationForm()
  2. 9 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken::buildConfigurationForm()

File

core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php, line 21

Class

Broken
Defines a fallback plugin for missing entity_reference selection plugins.

Namespace

Drupal\Core\Entity\Plugin\EntityReferenceSelection

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildConfigurationForm($form, $form_state);
  $form['selection_handler'] = [
    '#markup' => t('The selected selection handler is broken.'),
  ];
  return $form;
}