function ExecutablePluginTrait::summary
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.
4 methods override ExecutablePluginTrait::summary()
- TestConditionFalse::summary in tests/
modules/ rules_test/ src/ Plugin/ Condition/ TestConditionFalse.php - Get the translated summary from the label annotation.
- TestConditionProvider::summary in tests/
modules/ rules_test/ src/ Plugin/ Condition/ TestConditionProvider.php - Get the translated summary from the label annotation.
- TestConditionTrue::summary in tests/
modules/ rules_test/ src/ Plugin/ Condition/ TestConditionTrue.php - Get the translated summary from the label annotation.
- TestTextCondition::summary in tests/
modules/ rules_test/ src/ Plugin/ Condition/ TestTextCondition.php - Get the translated summary from the label annotation.
File
-
src/
Core/ ExecutablePluginTrait.php, line 41
Class
- ExecutablePluginTrait
- Offers common methods for executable plugins.
Namespace
Drupal\rules\CoreCode
public function summary() {
return $this->getLabelValue();
}