function Broken::buildConfigurationForm

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken::buildConfigurationForm()
  2. 8.9.x core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken::buildConfigurationForm()
  3. 10 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken::buildConfigurationForm()

Overrides SelectionPluginBase::buildConfigurationForm

File

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

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' => $this->t('The selected selection handler is broken.'),
    ];
    return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.