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

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

            // Default omitted on purpose
        }

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

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

            // Default omitted on purpose
        }

        return false;
    }
public function getNestedModelClassesByType ( ModelInformationInterface $ info , $ type , $ key ) { // Find the reference information for type and key specified switch ( $ type ) { case 'form.field' : return $ this -> getInformationReferenceModelClassesForFormField ( $ info , $ key ) ; // Default omitted on purpose } return false ; }
Returns nested model classes for model information, type and key.

This can be used to check whether reference data is for multiple models, and if so, which.

@param ModelInformationInterface $info
@param string                    $type
@param string                    $key
@return false|string[]   Returns false if the relation does not have nested model data.
Returns nested model classes for model information type and key .