use wcf\system\form\builder\field\AbstractFormField;
use wcf\system\form\builder\field\data\processor\CustomFormFieldDataProcessor;
use wcf\system\form\builder\field\IObjectTypeFormField;
+use wcf\system\form\builder\field\TDefaultIdFormField;
use wcf\system\form\builder\field\TObjectTypeFormField;
use wcf\system\form\builder\IFormDocument;
use wcf\system\tagging\TagEngine;
* Implementation of a form field for tags.
*
* This field uses the `wcf.tagging.tags` and `wcf.tagging.tags.description` language
- * item as the default form field label and description, respectively.
+ * item as the default form field label and description, respectively. The default id
+ * of fields of this class is `tags`.
*
* @author Matthias Schmidt
* @copyright 2001-2019 WoltLab GmbH
* @since 5.2
*/
class TagFormField extends AbstractFormField implements IObjectTypeFormField {
+ use TDefaultIdFormField;
use TObjectTypeFormField;
/**
return parent::value($stringTags);
}
+
+ /**
+ * @inheritDoc
+ */
+ protected static function getDefaultId() {
+ return 'tags';
+ }
}