code: 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;
          }
      }
docs: Render the html for the input screen condition.
  
  @param ModelToLabelEvent $event The event.
  
  @return void