public function validationRules(ModelInformationInterface $modelInformation = null, $create)
    {
        if ( ! ($field = $this->formFieldData)) {
            return false;
        }

        return $this->getStrategySpecificRules($field);
    }
public function validationRules(ModelInformationInterface $modelInformation = null, $create)
    {
        if ( ! ($field = $this->formFieldData)) {
            return false;
        }

        return $this->getStrategySpecificRules($field);
    }
public function validationRules ( ModelInformationInterface $ modelInformation = null , $ create ) { if ( ! ( $ field = $ this -> formFieldData ) ) { return false ; } return $ this -> getStrategySpecificRules ( $ field ) ; }
Returns validation rules to use for submitted form data for this strategy.

If the return array is associative, rules are expected nested per key,
otherwise the rules will be added to the top level key.

@param ModelInformationInterface|ModelInformation|null $modelInformation
@param bool                                            $create
@return array|false false if no validation should be performed.
Returns validation rules to use for submitted form data for this strategy .