src/CoreBundle/EventListener/DcGeneral/MetaModel/CutButtonListener.php
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);
            }
        }
    }
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);
            }
        }
    }
Handle the event.

@param GetOperationButtonEvent $event The event.

@return void