protected function createUrl($actionName, $node = null)
    {
        if (isset($node) && is_callable($this->urlCreator)) {
            return call_user_func($this->urlCreator, $node, $actionName, $this);
        } else {
            $params = isset($node) ? ['id' => (string) $node['id']] : [];
            $params[0] = $this->controller ? $this->controller . '/' . $actionName : $actionName;

            return Url::toRoute($params);
        }
    }