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);
}
}