/** * Renames the configured property to the new name. * * @param \TYPO3\TYPO3CR\Domain\Model\NodeInterface $node * @return void */ public function execute(\TYPO3\TYPO3CR\Domain\Model\NodeInterface $node) { $node->setProperty($this->newPropertyName, $node->getProperty($this->oldPropertyName)); $node->removeProperty($this->oldPropertyName); }
/** * Remove the property from the given node. * * @param \TYPO3\TYPO3CR\Domain\Model\NodeInterface $node * @return void */ public function execute(\TYPO3\TYPO3CR\Domain\Model\NodeInterface $node) { $node->removeProperty($this->propertyName); }