Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Condition / BaloneySpam.php
1 <?php
2
3 namespace Drupal\block_test\Plugin\Condition;
4
5 use Drupal\Core\Condition\ConditionPluginBase;
6
7 /**
8  * Provides a 'baloney_spam' condition.
9  *
10  * @Condition(
11  *   id = "baloney_spam",
12  *   label = @Translation("Baloney spam"),
13  * )
14  */
15 class BaloneySpam extends ConditionPluginBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function evaluate() {
21     return TRUE;
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   public function summary() {
28     return 'Summary';
29   }
30
31 }