code: public function handle(GetOperationButtonEvent $event)
      {
          if (!$event->getEnvironment()->getDataDefinition() instanceof IMetaModelDataDefinition) {
              return;
          }
  
          $command = $event->getCommand();
  
          if ($command->getName() === 'cut') {
              $sortingProperty = ViewHelpers::getManualSortingProperty($event->getEnvironment());
  
              if (!$sortingProperty) {
                  $event->setDisabled(true);
              }
          }
      }
docs: Handle the event.
  
  @param GetOperationButtonEvent $event The event.
  
  @return void