src/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php
protected function renderModel(ModelInterface $model, EnvironmentInterface $environment)
    {
        $event = new FormatModelLabelEvent($environment, $model);
        $environment->getEventDispatcher()->dispatch(
            DcGeneralEvents::FORMAT_MODEL_LABEL,
            $event
        );

        $model->setMeta($model::LABEL_VALUE, $event->getLabel());
    }
protected function renderModel(ModelInterface $model, EnvironmentInterface $environment)
    {
        $event = new FormatModelLabelEvent($environment, $model);
        $environment->getEventDispatcher()->dispatch(
            DcGeneralEvents::FORMAT_MODEL_LABEL,
            $event
        );

        $model->setMeta($model::LABEL_VALUE, $event->getLabel());
    }
protected function renderModel ( ModelInterface $ model , EnvironmentInterface $ environment ) { $ event = new FormatModelLabelEvent ( $ environment , $ model ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( DcGeneralEvents :: FORMAT_MODEL_LABEL , $ event ) ; $ model -> setMeta ( $ model :: LABEL_VALUE , $ event -> getLabel ( ) ) ; }
Render a model.

@param ModelInterface       $model       The model to render.
@param EnvironmentInterface $environment Current environment.

@return void
Render a model .