/**
  * @see SpecialNewEntity::additionalFormElements
  *
  * @return array
  */
 protected function additionalFormElements()
 {
     if ($this->site === null || $this->page === null) {
         return parent::additionalFormElements();
     }
     $formDescriptor = parent::additionalFormElements();
     $formDescriptor['site'] = array('name' => 'site', 'default' => $this->site, 'type' => 'text', 'id' => 'wb-newitem-site', 'readonly' => 'readonly', 'label-message' => 'wikibase-newitem-site');
     $formDescriptor['page'] = array('name' => 'page', 'default' => $this->page, 'type' => 'text', 'id' => 'wb-newitem-page', 'readonly' => 'readonly', 'label-message' => 'wikibase-newitem-page');
     return $formDescriptor;
 }
 /**
  * @see SpecialNewEntity::additionalFormElements()
  */
 protected function additionalFormElements()
 {
     $dataTypeFactory = WikibaseRepo::getDefaultInstance()->getDataTypeFactory();
     $selector = new DataTypeSelector($dataTypeFactory->getTypes(), $this->getLanguage()->getCode());
     $formDescriptor = parent::additionalFormElements();
     $formDescriptor['datatype'] = array('name' => 'datatype', 'type' => 'select', 'options' => array_flip($selector->getOptionsArray()), 'id' => 'wb-newproperty-datatype', 'label-message' => 'wikibase-newproperty-datatype');
     return $formDescriptor;
 }