src/Yggdrasil/Utils/Form/FormHandler.php
public function getData(string $key)
    {
        if (!$this->hasData($key)) {
            throw new \InvalidArgumentException($key . ' not found in submitted form data.');
        }

        return $this->dataCollection[$key];
    }
public function getData(string $key)
    {
        if (!$this->hasData($key)) {
            throw new \InvalidArgumentException($key . ' not found in submitted form data.');
        }

        return $this->dataCollection[$key];
    }
public function getData ( string $ key ) { if ( ! $ this -> hasData ( $ key ) ) { throw new \ InvalidArgumentException ( $ key . ' not found in submitted form data.' ) ; } return $ this -> dataCollection [ $ key ] ; }
Returns given form data

@param string $key Key of form data, equivalent to input name
@return mixed
@throws \InvalidArgumentException if data can't be found
Returns given form data