source/Application/Controller/Admin/ArticleVariant.php
public function deleteVariant()
    {
        $editObjectOxid = $this->getEditObjectId();
        $editObject = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $editObject->load($editObjectOxid);
        if ($editObject->isDerived()) {
            return;
        }

        $this->resetContentCache();

        $variantOxid = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestRawParameter("voxid");
        $variant = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $variant->delete($variantOxid);
    }
public function deleteVariant()
    {
        $editObjectOxid = $this->getEditObjectId();
        $editObject = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $editObject->load($editObjectOxid);
        if ($editObject->isDerived()) {
            return;
        }

        $this->resetContentCache();

        $variantOxid = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestRawParameter("voxid");
        $variant = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $variant->delete($variantOxid);
    }
public function deleteVariant ( ) { $ editObjectOxid = $ this -> getEditObjectId ( ) ; $ editObject = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ editObject -> load ( $ editObjectOxid ) ; if ( $ editObject -> isDerived ( ) ) { return ; } $ this -> resetContentCache ( ) ; $ variantOxid = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestRawParameter ( "voxid" ) ; $ variant = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ variant -> delete ( $ variantOxid ) ; }
Deletes article variant.

@return null
Deletes article variant .