Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Plugin / EntityReferenceSelection / Broken.php
index f53eeb618902a091e556e6521faca9ecb707ce18..e8251e631f74a77425e0970d6f1eb2e8ad3c1597 100644 (file)
@@ -2,8 +2,7 @@
 
 namespace Drupal\Core\Entity\Plugin\EntityReferenceSelection;
 
-use Drupal\Core\Database\Query\SelectInterface;
-use Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface;
+use Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase;
 use Drupal\Core\Form\FormStateInterface;
 
 /**
@@ -14,28 +13,19 @@ use Drupal\Core\Form\FormStateInterface;
  *   label = @Translation("Broken/Missing")
  * )
  */
-class Broken implements SelectionInterface {
+class Broken extends SelectionPluginBase {
 
   /**
    * {@inheritdoc}
    */
   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;
   }
 
-  /**
-   * {@inheritdoc}
-   */
-  public function validateConfigurationForm(array &$form, FormStateInterface $form_state) { }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { }
-
   /**
    * {@inheritdoc}
    */
@@ -57,9 +47,4 @@ class Broken implements SelectionInterface {
     return [];
   }
 
-  /**
-   * {@inheritdoc}
-   */
-  public function entityQueryAlter(SelectInterface $query) { }
-
 }