Version 1
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / PluginForm / EmptyBlockForm.php
diff --git a/web/core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php b/web/core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php
new file mode 100644 (file)
index 0000000..6a654cb
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace Drupal\block_test\PluginForm;
+
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Plugin\PluginFormBase;
+
+/**
+ * Provides a form for a block that is empty.
+ */
+class EmptyBlockForm extends PluginFormBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
+    // Intentionally empty.
+  }
+
+}