Exemple #1
0
 /**
  * Updates the node label
  *
  * @param \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node
  * @param string $updatedLabel
  * @return void
  */
 public static function updateNodeLabel(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node, $updatedLabel)
 {
     if ($GLOBALS['BE_USER']->checkLanguageAccess(0)) {
         $data['pages'][$node->getWorkspaceId()][$node->getTextSourceField()] = $updatedLabel;
         self::processTceCmdAndDataMap(array(), $data);
     } else {
         throw new \RuntimeException(implode(LF, array('Editing title of page id \'' . $node->getWorkspaceId() . '\' failed. Editing default language is not allowed.')), 1365513336);
     }
 }
Exemple #2
0
 /**
  * Updates the node label
  *
  * @param \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node
  * @param string $updatedLabel
  * @return void
  */
 public static function updateNodeLabel(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode $node, $updatedLabel)
 {
     $data['pages'][$node->getWorkspaceId()][$node->getTextSourceField()] = $updatedLabel;
     self::processTceCmdAndDataMap(array(), $data);
 }