public function PathCondition::validateConfiguration in Access Filter 8
Validates configuration data.
Parameters
array $configuration: The array containing configurations.
Return value
array An array of error messages.
Overrides ConditionInterface::validateConfiguration
File
- src/
Plugin/ AccessFilter/ Condition/ PathCondition.php, line 71
Class
- PathCondition
- Filter condition using drupal path.
Namespace
Drupal\access_filter\Plugin\AccessFilter\ConditionCode
public function validateConfiguration(array $configuration) {
$errors = [];
if (!isset($configuration['path']) || !strlen($configuration['path'])) {
$errors[] = $this
->t("'@property' is required.", [
'@property' => 'path',
]);
}
return $errors;
}