eZ\Publish\Core\Persistence\Legacy\Content\Type\MemoryCachingHandler::load PHP Method

load() public method

public load ( integer $contentTypeId, integer $status = Type::STATUS_DEFINED ) : eZ\Publish\SPI\Persistence\Content\Type
$contentTypeId integer
$status integer
return eZ\Publish\SPI\Persistence\Content\Type
    public function load($contentTypeId, $status = Type::STATUS_DEFINED)
    {
        if (isset($this->contentTypes['id'][$contentTypeId][$status])) {
            return $this->contentTypes['id'][$contentTypeId][$status];
        }
        return $this->contentTypes['id'][$contentTypeId][$status] = $this->innerHandler->load($contentTypeId, $status);
    }