BaloneySpam.php

Same filename in other branches
  1. 8.9.x core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php
  2. 10 core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php
  3. 11.x core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php

Namespace

Drupal\block_test\Plugin\Condition

File

core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php

View source
<?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';
    }

}

Classes

Title Deprecated Summary
BaloneySpam Provides a 'baloney_spam' condition.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.