src/Contao/View/Contao2BackendView/ButtonRenderer.php
private function calculateHref(CommandInterface $command, $model)
    {
        $parameters = $this->calculateParameters($command, ModelId::fromModel($model)->getSerialized());
        $href       = '';
        foreach ($parameters as $key => $value) {
            $href .= \sprintf('&%s=%s', $key, $value);
        }

        return $this->addToUrl($href);
    }
private function calculateHref(CommandInterface $command, $model)
    {
        $parameters = $this->calculateParameters($command, ModelId::fromModel($model)->getSerialized());
        $href       = '';
        foreach ($parameters as $key => $value) {
            $href .= \sprintf('&%s=%s', $key, $value);
        }

        return $this->addToUrl($href);
    }
private function calculateHref ( CommandInterface $ command , $ model ) { $ parameters = $ this -> calculateParameters ( $ command , ModelId :: fromModel ( $ model ) -> getSerialized ( ) ) ; $ href = '' ; foreach ( $ parameters as $ key => $ value ) { $ href .= \ sprintf ( '&%s=%s' , $ key , $ value ) ; } return $ this -> addToUrl ( $ href ) ; }
Calculate the href for a command.

@param CommandInterface $command The command.
@param ModelInterface   $model   The current model.

@return string
Calculate the href for a command .