Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Structures | |
class | FactoryTest |
Public Member Functions | |
addValidator (\Magento\Framework\Validator\ValidatorInterface $validator, $breakChainOnFailure=false) | |
setTranslator ($translator=null) | |
![]() | |
setTranslator ($translator=null) | |
getTranslator () | |
hasTranslator () | |
getMessages () | |
hasMessages () | |
![]() | |
isValid ($value) | |
Protected Attributes | |
$_validators = [] | |
![]() | |
$_translator = null | |
$_messages = [] | |
Additional Inherited Members | |
![]() | |
static | setDefaultTranslator (\Magento\Framework\Translate\AdapterInterface $translator=null) |
static | getDefaultTranslator () |
![]() | |
_clearMessages () | |
_addMessages (array $messages) | |
![]() | |
static | $_defaultTranslator = null |
Validator class that represents chain of validators.
@api
Definition at line 15 of file Validator.php.
addValidator | ( | \Magento\Framework\Validator\ValidatorInterface | $validator, |
$breakChainOnFailure = false |
|||
) |
Adds a validator to the end of the chain
\Magento\Framework\Validator\ValidatorInterface | $validator | |
boolean | $breakChainOnFailure |
Definition at line 31 of file Validator.php.
setTranslator | ( | $translator = null | ) |
Set translator to chain.
\Magento\Framework\Translate\AdapterInterface | null | $translator |
Implements ValidatorInterface.
Definition at line 78 of file Validator.php.
|
protected |
Definition at line 22 of file Validator.php.