Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Validator\ValidatorInterface $validator, $alias=null) | |
isValid ($value) | |
getAlias () | |
setTranslator ($translator=null) | |
getTranslator () | |
![]() | |
setTranslator ($translator=null) | |
getTranslator () | |
hasTranslator () | |
getMessages () | |
hasMessages () | |
Protected Member Functions | |
_getValidatorValue ($value) | |
![]() | |
_clearMessages () | |
_addMessages (array $messages) | |
Protected Attributes | |
$_wrappedValidator | |
$_alias | |
![]() | |
$_translator = null | |
$_messages = [] | |
Additional Inherited Members | |
![]() | |
static | setDefaultTranslator (\Magento\Framework\Translate\AdapterInterface $translator=null) |
static | getDefaultTranslator () |
![]() | |
static | $_defaultTranslator = null |
__construct | ( | \Magento\Framework\Validator\ValidatorInterface | $validator, |
$alias = null |
|||
) |
Constructor
\Magento\Framework\Validator\ValidatorInterface | $validator | |
string | $alias |
Definition at line 36 of file Constraint.php.
|
protected |
Get value that should be validated.
mixed | $value |
Definition at line 68 of file Constraint.php.
getAlias | ( | ) |
getTranslator | ( | ) |
Get translator instance of wrapped validator
Implements ValidatorInterface.
Definition at line 104 of file Constraint.php.
isValid | ( | $value | ) |
Delegate validation to wrapped validator
mixed | $value |
Implements Zend_Validate_Interface.
Definition at line 49 of file Constraint.php.
setTranslator | ( | $translator = null | ) |
Set translator to wrapped validator.
\Magento\Framework\Translate\AdapterInterface | null | $translator |
Implements ValidatorInterface.
Definition at line 93 of file Constraint.php.
|
protected |
Definition at line 28 of file Constraint.php.
|
protected |
Definition at line 21 of file Constraint.php.