public function deliveryLabelChanged(MetadataModified $event)
    {
        $resource = $event->getResource();
        if ($event->getMetadataUri() === OntologyRdfs::RDFS_LABEL) {
            $assemblyClass = DeliveryAssemblyService::singleton()->getRootClass();
            if ($resource->isInstanceOf($assemblyClass)) {
                /** @var $queueService QueueDispatcherInterface */
                $queueService = $this->getServiceLocator()->get(QueueDispatcherInterface::SERVICE_ID);
                $queueService->createTask(new DeliveryUpdaterTask(), [$resource->getUri(), $event->getMetadataValue()], 'Update delivery label');
            }
        }
    }
public function deliveryLabelChanged(MetadataModified $event)
    {
        $resource = $event->getResource();
        if ($event->getMetadataUri() === OntologyRdfs::RDFS_LABEL) {
            $assemblyClass = DeliveryAssemblyService::singleton()->getRootClass();
            if ($resource->isInstanceOf($assemblyClass)) {
                /** @var $queueService QueueDispatcherInterface */
                $queueService = $this->getServiceLocator()->get(QueueDispatcherInterface::SERVICE_ID);
                $queueService->createTask(new DeliveryUpdaterTask(), [$resource->getUri(), $event->getMetadataValue()], 'Update delivery label');
            }
        }
    }
public function deliveryLabelChanged ( MetadataModified $ event ) { $ resource = $ event -> getResource ( ) ; if ( $ event -> getMetadataUri ( ) === OntologyRdfs :: RDFS_LABEL ) { $ assemblyClass = DeliveryAssemblyService :: singleton ( ) -> getRootClass ( ) ; if ( $ resource -> isInstanceOf ( $ assemblyClass ) ) { /** @var $queueService QueueDispatcherInterface */ $ queueService = $ this -> getServiceLocator ( ) -> get ( QueueDispatcherInterface :: SERVICE_ID ) ; $ queueService -> createTask ( new DeliveryUpdaterTask ( ) , [ $ resource -> getUri ( ) , $ event -> getMetadataValue ( ) ] , 'Update delivery label' ) ; } } }
Update the label of the delivery across the entrie cache

@param MetadataModified $event
Update the label of the delivery across the entrie cache