public function getForInformationByType(ModelInformationInterface $info, $type, $key, $targetModel = null)
    {
        // Find the reference information for type and key specified
        switch ($type) {

            case 'form.field':
                return $this->getInformationReferenceDataForFormField($info, $key, $targetModel);

            // Default omitted on purpose
        }

        return false;
    }
public function getForInformationByType(ModelInformationInterface $info, $type, $key, $targetModel = null)
    {
        // Find the reference information for type and key specified
        switch ($type) {

            case 'form.field':
                return $this->getInformationReferenceDataForFormField($info, $key, $targetModel);

            // Default omitted on purpose
        }

        return false;
    }
public function getForInformationByType ( ModelInformationInterface $ info , $ type , $ key , $ targetModel = null ) { // Find the reference information for type and key specified switch ( $ type ) { case 'form.field' : return $ this -> getInformationReferenceDataForFormField ( $ info , $ key , $ targetModel ) ; // Default omitted on purpose } return false ; }
Returns reference data for model information, type and key.

@param ModelInformationInterface $info
@param string                    $type
@param string                    $key
@param string|null               $targetModel    for multiple/nested models, the target to use
@return ModelMetaReferenceInterface|false
Returns reference data for model information type and key .