Backend\Core\Engine\Meta::setURLCallback PHP Method

setURLCallback() public method

Set the callback to calculate an unique URL REMARK: this method has to be public and static REMARK: if you specify arguments they will be appended
public setURLCallback ( string $className, string $methodName, array $parameters = [] )
$className string Name of the class to use.
$methodName string Name of the method to use.
$parameters array Parameters to parse, they will be passed after ours.
    public function setURLCallback($className, $methodName, $parameters = array())
    {
        $className = (string) $className;
        $methodName = (string) $methodName;
        $parameters = (array) $parameters;
        // store in property
        $this->callback = array('class' => $className, 'method' => $methodName, 'parameters' => $parameters);
        // re-load the form
        $this->loadForm();
    }