src/Contao/View/Contao2BackendView/ButtonRenderer.php
private function getCommandLabel(CommandInterface $command)
    {
        if (null === $label = $command->getLabel()) {
            $label = $command->getName();
        }

        $label = $this->translate($label);

        return \is_array($label) ? $label[0] : $label;
    }
private function getCommandLabel(CommandInterface $command)
    {
        if (null === $label = $command->getLabel()) {
            $label = $command->getName();
        }

        $label = $this->translate($label);

        return \is_array($label) ? $label[0] : $label;
    }
private function getCommandLabel ( CommandInterface $ command ) { if ( null === $ label = $ command -> getLabel ( ) ) { $ label = $ command -> getName ( ) ; } $ label = $ this -> translate ( $ label ) ; return \ is_array ( $ label ) ? $ label [ 0 ] : $ label ; }
Get the correct label for a command button.

@param CommandInterface $command The command.

@return string
Get the correct label for a command button .