public function get(string $name) : EventHandlerInterface
    {
        if (!isset($this->eventHandlers[$name])) {
            throw new \InvalidArgumentException(sprintf('DataGrid event handler %s not found', $name));
        }

        return $this->eventHandlers[$name];
    }
public function get(string $name) : EventHandlerInterface
    {
        if (!isset($this->eventHandlers[$name])) {
            throw new \InvalidArgumentException(sprintf('DataGrid event handler %s not found', $name));
        }

        return $this->eventHandlers[$name];
    }
public function get ( string $ name ) : EventHandlerInterface { if ( ! isset ( $ this -> eventHandlers [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'DataGrid event handler %s not found' , $ name ) ) ; } return $ this -> eventHandlers [ $ name ] ; }
Returns chosen event handler by its function name

@param $name

@return EventHandlerInterface
@throws \InvalidArgumentException
Returns chosen event handler by its function name