Neos.Media.Browser/Classes/Controller/AssetController.php
public function tagAssetAction(Asset $asset, Tag $tag): void
    {
        $success = false;
        if ($asset->addTag($tag)) {
            $this->assetRepository->update($asset);
            $success = true;
        }
        $this->view->assign('value', $success);
    }
public function tagAssetAction(Asset $asset, Tag $tag): void
    {
        $success = false;
        if ($asset->addTag($tag)) {
            $this->assetRepository->update($asset);
            $success = true;
        }
        $this->view->assign('value', $success);
    }
public function tagAssetAction ( Asset $ asset , Tag $ tag ) : void { $ success = false ; if ( $ asset -> addTag ( $ tag ) ) { $ this -> assetRepository -> update ( $ asset ) ; $ success = true ; } $ this -> view -> assign ( 'value' , $ success ) ; }
Tags an asset with a tag.

No redirection and no response body, no flash message, for use by plupload (or similar).

@param Asset $asset
@param Tag $tag
@return void
@throws IllegalObjectTypeException
Tags an asset with a tag .