src/Contao/View/Contao2BackendView/ActionHandler/ShowHandler.php
protected function getHeadline(TranslatorInterface $translator, $model)
    {
        $headline = $translator->translate(
            'MSC.showRecord',
            $model->getProviderName(),
            ['ID ' . $model->getId()]
        );

        if ('MSC.showRecord' !== $headline) {
            return $headline;
        }

        return $translator->translate(
            'MSC.showRecord',
            null,
            ['ID ' . $model->getId()]
        );
    }
protected function getHeadline(TranslatorInterface $translator, $model)
    {
        $headline = $translator->translate(
            'MSC.showRecord',
            $model->getProviderName(),
            ['ID ' . $model->getId()]
        );

        if ('MSC.showRecord' !== $headline) {
            return $headline;
        }

        return $translator->translate(
            'MSC.showRecord',
            null,
            ['ID ' . $model->getId()]
        );
    }
protected function getHeadline ( TranslatorInterface $ translator , $ model ) { $ headline = $ translator -> translate ( 'MSC.showRecord' , $ model -> getProviderName ( ) , [ 'ID ' . $ model -> getId ( ) ] ) ; if ( 'MSC.showRecord' !== $ headline ) { return $ headline ; } return $ translator -> translate ( 'MSC.showRecord' , null , [ 'ID ' . $ model -> getId ( ) ] ) ; }
Get the headline for the template.

@param TranslatorInterface $translator The translator.
@param ModelInterface      $model      The model.

@return string
Get the headline for the template .