class WeatherDisplayConstraint in Weather 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Validation/Constraint/WeatherDisplayConstraint.php \Drupal\weather\Plugin\Validation\Constraint\WeatherDisplayConstraint
Checks that created Weather Display is valid.
Plugin annotation
@Constraint(
id = "WeatherDisplay",
label = @Translation("Weather display unique", context = "Validation"),
type = "string"
)
Hierarchy
- class \Drupal\weather\Plugin\Validation\Constraint\WeatherDisplayConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of WeatherDisplayConstraint
File
- src/
Plugin/ Validation/ Constraint/ WeatherDisplayConstraint.php, line 16
Namespace
Drupal\weather\Plugin\Validation\ConstraintView source
class WeatherDisplayConstraint extends Constraint {
public $notUniqueDefaultDisplay = '%value default display already exists.';
public $notUniqueUserDisplay = '%value display for this use already exists.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WeatherDisplayConstraint:: |
public | property | ||
WeatherDisplayConstraint:: |
public | property |