| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function updateCMSFields(FieldList $fields) |
||
| 15 | { |
||
| 16 | $tags = $this->getAllTagsMap(); |
||
| 17 | $tagField = ListboxField::create('Tags', _t('DMSDocumentTaxonomyExtension.TAGS', 'Tags')) |
||
| 18 | ->setMultiple(true) |
||
| 19 | ->setSource($tags); |
||
| 20 | |||
| 21 | if (empty($tags)) { |
||
| 22 | $tagField->setAttribute('data-placeholder', _t('DMSDocumentTaxonomyExtension.NOTAGS', 'No tags found')); |
||
| 23 | } |
||
| 24 | |||
| 25 | $fields->insertAfter('Description', $tagField); |
||
| 26 | } |
||
| 27 | |||
| 56 |