public function modifyFormValidator(ValidatorInterface $validator, SiteTreeNodeInterface $page)
 {
     $validator->addRules([$this->fieldName('sitetree_root_id') => 'integer|min:1|max:999']);
 }
示例#2
0
 public function modifyFormValidator(ValidatorInterface $validator, SiteTreeNodeInterface $page)
 {
     $validator->addRules(['redirect_type' => 'in:internal,external', 'redirect__redirect_target_e' => 'required_if:redirect_type,external|url']);
 }