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

loadGroup() public method

See also: eZ\Publish\SPI\Persistence\Content\Type\Handler::loadGroup
public loadGroup ( $groupId )
    public function loadGroup($groupId)
    {
        $cache = $this->cache->getItem('contentTypeGroup', $groupId);
        $group = $cache->get();
        if ($cache->isMiss()) {
            $this->logger->logCall(__METHOD__, array('group' => $groupId));
            $cache->set($group = $this->persistenceHandler->contentTypeHandler()->loadGroup($groupId))->save();
        }
        return $group;
    }