You are here

public function FieldValidationRuleBase::getSummary in Field Validation 8

Returns a render array summarizing the configuration of the field_validation_rule.

Return value

array A render array.

Overrides FieldValidationRuleInterface::getSummary

14 calls to FieldValidationRuleBase::getSummary()
BlacklistFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/BlacklistFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
DateRangeFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/DateRangeFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
EmailFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/EmailFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
IntegerFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/IntegerFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
IpFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/IpFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.

... See full list

14 methods override FieldValidationRuleBase::getSummary()
BlacklistFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/BlacklistFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
DateRangeFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/DateRangeFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
EmailFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/EmailFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
IntegerFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/IntegerFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.
IpFieldValidationRule::getSummary in src/Plugin/FieldValidationRule/IpFieldValidationRule.php
Returns a render array summarizing the configuration of the field_validation_rule.

... See full list

File

src/FieldValidationRuleBase.php, line 106

Class

FieldValidationRuleBase
Provides a base class for FieldValidationRule.

Namespace

Drupal\field_validation

Code

public function getSummary() {
  return [
    '#markup' => '',
    '#tab' => [
      'id' => $this->pluginDefinition['id'],
      'label' => $this
        ->label(),
      'description' => $this->pluginDefinition['description'],
    ],
  ];
}