You are here

public function OneOfSeveralValidationRule::getSummary in Field Validation 8

Returns a render array summarizing the configuration of the field_validation_rule.

Return value

array A render array.

Overrides FieldValidationRuleBase::getSummary

File

src/Plugin/FieldValidationRule/OneOfSeveralValidationRule.php, line 34

Class

OneOfSeveralValidationRule
OneOfSeveralValidationRule

Namespace

Drupal\field_validation\Plugin\FieldValidationRule

Code

public function getSummary() {
  $summary = [
    '#theme' => 'field_validation_rule_summary',
    '#data' => $this->configuration,
  ];
  $summary += parent::getSummary();
  return $summary;
}