Pimcore\Model\Document\Tag\Image::rewriteIds PHP Метод

rewriteIds() публичный Метод

..), "asset" => array(...) )
public rewriteIds ( array $idMapping ) : void
$idMapping array
Результат void
    public function rewriteIds($idMapping)
    {
        if (array_key_exists("asset", $idMapping) and array_key_exists($this->getId(), $idMapping["asset"])) {
            $this->setId($idMapping["asset"][$this->getId()]);
            // reset marker & hotspot information
            $this->setHotspots([]);
            $this->setMarker([]);
            $this->setCropPercent(false);
            $this->setImage(null);
        }
    }