Version 1
[yaffs-website] / web / core / modules / views / src / Plugin / views / area / Broken.php
diff --git a/web/core/modules/views/src/Plugin/views/area/Broken.php b/web/core/modules/views/src/Plugin/views/area/Broken.php
new file mode 100644 (file)
index 0000000..7bd6cdb
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\views\Plugin\views\area;
+
+use Drupal\views\Plugin\views\BrokenHandlerTrait;
+
+/**
+ * A special handler to take the place of missing or broken handlers.
+ *
+ * @ingroup views_area_handlers
+ *
+ * @ViewsArea("broken")
+ */
+class Broken extends AreaPluginBase {
+  use BrokenHandlerTrait;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function render($empty = FALSE) {
+    // Simply render nothing by returning an empty render array.
+    return [];
+  }
+
+}