Bolt\Controller\Async\General::lastModified PHP Method

lastModified() public method

Latest {contenttype} to show a small listing in the sidebars.
public lastModified ( string $contenttypeslug, integer | null $contentid = null ) : TemplateResponse
$contenttypeslug string
$contentid integer | null
return Bolt\Response\TemplateResponse
    public function lastModified($contenttypeslug, $contentid = null)
    {
        // Let's find out how we should determine what the latest changes were:
        $contentLogEnabled = (bool) $this->getOption('general/changelog/enabled');
        if ($contentLogEnabled) {
            return $this->getLastmodifiedByContentLog($contenttypeslug, $contentid);
        } else {
            return $this->getLastmodifiedSimple($contenttypeslug);
        }
    }