Pimcore\Model\Object\ClassDefinition\CustomLayout::delete PHP Method

delete() public method

public delete ( ) : void
return void
    public function delete()
    {
        // empty object cache
        try {
            Cache::clearTag("customlayout_" . $this->getId());
        } catch (\Exception $e) {
        }
        // empty output cache
        try {
            Cache::clearTag("output");
        } catch (\Exception $e) {
        }
        $this->getDao()->delete();
    }