public function getDataFromProvider()
    {
        $select = $this->get(self::DATA_PARAM);
        if(is_null($select->getValue())) {
            return array();
        }
        $classname = $select->getValue();
        if (!class_exists($classname) || !array_key_exists($classname, $select->getOptions())) {
            throw new NotFoundException;
        }
        return (new $classname)->getData();

    }
public function getDataFromProvider()
    {
        $select = $this->get(self::DATA_PARAM);
        if(is_null($select->getValue())) {
            return array();
        }
        $classname = $select->getValue();
        if (!class_exists($classname) || !array_key_exists($classname, $select->getOptions())) {
            throw new NotFoundException;
        }
        return (new $classname)->getData();

    }
public function getDataFromProvider ( ) { $ select = $ this -> get ( self :: DATA_PARAM ) ; if ( is_null ( $ select -> getValue ( ) ) ) { return array ( ) ; } $ classname = $ select -> getValue ( ) ; if ( ! class_exists ( $ classname ) || ! array_key_exists ( $ classname , $ select -> getOptions ( ) ) ) { throw new NotFoundException ; } return ( new $ classname ) -> getData ( ) ; }
Proxy method to retrieve data to populate select lists.
@return array
@throws \Vegas\Forms\DataProvider\Exception\NotFoundException When DI is not configured properly or a wrong value is provided.
Proxy method to retrieve data to populate select lists .