Crud\Listener\RedirectListener::_getKey PHP Method

_getKey() protected method

Return the value of $type with $key
protected _getKey ( Crud\Event\Subject $subject, string $reader, string $key ) : mixed
$subject Crud\Event\Subject Subject
$reader string Reader
$key string Key
return mixed
    protected function _getKey(Subject $subject, $reader, $key)
    {
        $callable = $this->reader($reader);
        if ($callable === null || !is_callable($callable)) {
            throw new Exception('Invalid reader: ' . $reader);
        }
        return $callable($subject, $key);
    }