You are here

public function FieldValidationRuleBase::getConfiguration in Field Validation 8

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurableInterface::getConfiguration

File

src/FieldValidationRuleBase.php, line 164

Class

FieldValidationRuleBase
Provides a base class for FieldValidationRule.

Namespace

Drupal\field_validation

Code

public function getConfiguration() {
  return [
    'uuid' => $this
      ->getUuid(),
    'id' => $this
      ->getPluginId(),
    'title' => $this
      ->getTitle(),
    'weight' => $this
      ->getWeight(),
    'field_name' => $this
      ->getFieldName(),
    'column' => $this
      ->getColumn(),
    'error_message' => $this
      ->getErrorMessage(),
    'data' => $this->configuration,
  ];
}