main/core/Manager/Resource/MaskManager.php
public function renameMask(ResourceType $resourceType, $currentName, $newName)
    {
        $toRename = $this->getDecoder($resourceType, $currentName);
        if (!empty($toRename)) {
            $toRename->setName($newName);
            $this->om->persist($toRename);
        }
    }
public function renameMask(ResourceType $resourceType, $currentName, $newName)
    {
        $toRename = $this->getDecoder($resourceType, $currentName);
        if (!empty($toRename)) {
            $toRename->setName($newName);
            $this->om->persist($toRename);
        }
    }
public function renameMask ( ResourceType $ resourceType , $ currentName , $ newName ) { $ toRename = $ this -> getDecoder ( $ resourceType , $ currentName ) ; if ( ! empty ( $ toRename ) ) { $ toRename -> setName ( $ newName ) ; $ this -> om -> persist ( $ toRename ) ; } }
Retrieves and renames a mask decoder.

@param ResourceType $resourceType
@param string       $currentName
@param string       $newName
Retrieves and renames a mask decoder .