Example #1
0
 /**
  * Sets the CSS Class on all pages which have versioned records
  * in the current workspace
  *
  * @param \TYPO3\CMS\Backend\Tree\TreeNode $node
  * @return void
  */
 protected function highlightVersionizedElements(\TYPO3\CMS\Backend\Tree\TreeNode $node)
 {
     if (!$node->getCls() && $this->getWorkspaceService()->hasPageRecordVersions($GLOBALS['BE_USER']->workspace, $node->getId())) {
         $node->setCls('ver-versions');
     }
 }
 /**
  * Sets the CSS Class on all pages which have versioned records
  * in the current workspace
  *
  * @param \TYPO3\CMS\Backend\Tree\TreeNode $node
  * @return void
  */
 protected function highlightVersionizedElements(\TYPO3\CMS\Backend\Tree\TreeNode $node)
 {
     if (!$node->getCls() && count(\TYPO3\CMS\Backend\Utility\BackendUtility::countVersionsOfRecordsOnPage($GLOBALS['BE_USER']->workspace, $node->getId(), TRUE))) {
         $node->setCls('ver-versions');
     }
 }