src/CoreBundle/EventListener/DcGeneral/Table/DcaSetting/ModelToLabelListener.php
public function handle(ModelToLabelEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $model = $event->getModel();

        switch ($model->getProperty('dcatype')) {
            case 'attribute':
                $this->drawAttribute($event);
                break;

            case 'legend':
                $this->drawLegend($event);
                break;

            default:
                break;
        }
    }
public function handle(ModelToLabelEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $model = $event->getModel();

        switch ($model->getProperty('dcatype')) {
            case 'attribute':
                $this->drawAttribute($event);
                break;

            case 'legend':
                $this->drawLegend($event);
                break;

            default:
                break;
        }
    }
public function handle ( ModelToLabelEvent $ event ) { if ( ! $ this -> wantToHandle ( $ event ) ) { return ; } $ model = $ event -> getModel ( ) ; switch ( $ model -> getProperty ( 'dcatype' ) ) { case 'attribute' : $ this -> drawAttribute ( $ event ) ; break ; case 'legend' : $ this -> drawLegend ( $ event ) ; break ; default : break ; } }
Render the html for the input screen condition.

@param ModelToLabelEvent $event The event.

@return void
Render the html for the input screen condition .