You are here

public function TestConditionProvider::summary in Rules 8.3

Get the translated summary from the label annotation.

Return value

string The summary of the plugin.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException Thrown if a summary was not set.

Overrides ExecutablePluginTrait::summary

File

tests/modules/rules_test/src/Plugin/Condition/TestConditionProvider.php, line 34

Class

TestConditionProvider
Test condition that adds a variable with the provided context.

Namespace

Drupal\rules_test\Plugin\Condition

Code

public function summary() {

  // We don't care about summaries for test condition plugins.
  return '';
}