/** * @param TopicsAttributeKey $source * @param CoreAttributeKey $destination */ public function publish(AttributeKey $source, CoreAttributeKey $destination) { $controller = $destination->getController(); $name = (string) $source->getTreeName(); $tree = \Concrete\Core\Tree\Type\Topic::getByName($name); $node = $tree->getNodeByDisplayPath($source->getNodePath()); $controller->setNodes($node->getTreeNodeID(), $tree->getTreeID()); }