Neos.Media.Browser/Classes/Controller/AssetController.php
public function updateAction(Asset $asset): void
    {
        $this->assetRepository->update($asset);
        $this->addFlashMessage('assetHasBeenUpdated', '', Message::SEVERITY_OK, [htmlspecialchars($asset->getLabel())]);
        $this->redirect('index');
    }
public function updateAction(Asset $asset): void
    {
        $this->assetRepository->update($asset);
        $this->addFlashMessage('assetHasBeenUpdated', '', Message::SEVERITY_OK, [htmlspecialchars($asset->getLabel())]);
        $this->redirect('index');
    }
public function updateAction ( Asset $ asset ) : void { $ this -> assetRepository -> update ( $ asset ) ; $ this -> addFlashMessage ( 'assetHasBeenUpdated' , '' , Message :: SEVERITY_OK , [ htmlspecialchars ( $ asset -> getLabel ( ) ) ] ) ; $ this -> redirect ( 'index' ) ; }
Update an asset

@param Asset $asset
@return void
@throws StopActionException
@throws IllegalObjectTypeException
Update an asset