Version 1
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Condition / BaloneySpam.php
diff --git a/web/core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php b/web/core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php
new file mode 100644 (file)
index 0000000..a977c16
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+namespace Drupal\block_test\Plugin\Condition;
+
+use Drupal\Core\Condition\ConditionPluginBase;
+
+/**
+ * Provides a 'baloney_spam' condition.
+ *
+ * @Condition(
+ *   id = "baloney_spam",
+ *   label = @Translation("Baloney spam"),
+ * )
+ */
+class BaloneySpam extends ConditionPluginBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function evaluate() {
+    return TRUE;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function summary() {
+    return 'Summary';
+  }
+
+}