eZ\Publish\Core\Persistence\Cache\ContentTypeHandler::delete PHP Method

delete() public method

See also: eZ\Publish\SPI\Persistence\Content\Type\Handler::delete
public delete ( $typeId, $status )
    public function delete($typeId, $status)
    {
        $this->logger->logCall(__METHOD__, array('type' => $typeId, 'status' => $status));
        $return = $this->persistenceHandler->contentTypeHandler()->delete($typeId, $status);
        if ($status === Type::STATUS_DEFINED) {
            // Clear type cache and all identifier cache (as we don't know the identifier)
            $this->cache->clear('contentType', $typeId);
            $this->cache->clear('contentType', 'identifier');
            $this->cache->clear('searchableFieldMap');
        }
        return $return;
    }