protected function writeEntry(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
- $acpSearchProvider = $document->createElement('acpsearchprovider');
+ $acpSearchProvider = $document->createElement($this->tagName);
$acpSearchProvider->setAttribute('name', $data['name']);
$acpSearchProvider->appendChild($document->createElement('classname', $data['classname']));
$data = $form->getData();
$formData = $form->getData()['data'];
- $cronjob = $document->createElement('cronjob');
+ $cronjob = $document->createElement($this->tagName);
$cronjob->setAttribute('name', $formData['name']);
$className = $document->createElement('classname', $formData['classname']);
$formData = $form->getData();
$data = $formData['data'];
- $menuItem = $document->createElement('item');
+ $menuItem = $document->createElement($this->tagName);
$menuItem->setAttribute('identifier', $data['identifier']);
if (!empty($data['menu'])) {
protected function writeEntry(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
- $definition = $document->createElement('definition');
+ $definition = $document->createElement($this->tagName);
$definition->appendChild($document->createElement('name', $data['name']));
if (!empty($data['interfacename'])) {
* @since 3.2
*/
protected function writeEntry(\DOMDocument $document, IFormDocument $form) {
- $type = $document->createElement('type');
+ $type = $document->createElement($this->tagName);
foreach ($form->getData()['data'] as $key => $value) {
if ($key === 'definitionID') {
$key = 'definitionname';
/** @var TextFormField $pluginName */
$pluginName = $form->getNodeById('pluginName');
- $pip = $document->createElement('pip', $className->getSaveValue());
+ $pip = $document->createElement($this->tagName, $className->getSaveValue());
$pip->setAttribute('name', $pluginName->getSaveValue());
$document->getElementsByTagName('import')->item(0)->appendChild($pip);
$formData = $form->getData();
$data = $formData['data'];
- $page = $document->createElement('page');
+ $page = $document->createElement($this->tagName);
$page->setAttribute('identifier', $data['identifier']);
$page->appendChild($document->createElement('pageType', $data['pageType']));
protected function writeEntry(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
- $userProfileMenuItem = $document->createElement('userprofilemenuitem');
+ $userProfileMenuItem = $document->createElement($this->tagName);
$userProfileMenuItem->setAttribute('name', $data['name']);
$userProfileMenuItem->appendChild($document->createElement('classname', $data['classname']));