@@ -33,12 +33,7 @@ class TagsWidget extends Widget
3333 */
3434 protected $ strTemplate = 'be_widget ' ;
3535
36- /**
37- * Tags manager.
38- *
39- * @var ManagerInterface
40- */
41- protected $ tagsManager ;
36+ protected ManagerInterface $ tagsManager ;
4237
4338 #[\Override]
4439 public function addAttributes ($ arrAttributes = null ): void
@@ -98,7 +93,7 @@ protected function generateConfig(): array
9893 'removeLabel ' => $ GLOBALS ['TL_LANG ' ]['MSC ' ]['removeItem ' ],
9994 'noResultsLabel ' => $ GLOBALS ['TL_LANG ' ]['MSC ' ]['noResults ' ],
10095 'allowCreate ' => isset ($ this ->tagsCreate ) ? (bool ) $ this ->tagsCreate : true ,
101- 'sortable ' => isset ( $ this -> tagsSortable ) && ( bool ) $ this ->tagsSortable ,
96+ 'sortable ' => ( bool ) $ this ->isSortable ,
10297 'allTags ' => $ this ->generateAllTags ($ this ->getAllTags ()),
10398 'valueTags ' => $ this ->generateValueTags ($ this ->getValueTags ()),
10499 ];
@@ -126,7 +121,7 @@ protected function getValueTags(): array
126121 $ tags = $ this ->tagsManager ->getFilteredTags ($ values , $ this ->tagsSource );
127122
128123 // Respect the tags order
129- if ($ this ->tagsSortable && \count ($ tags ) > 0 ) {
124+ if ($ this ->isSortable && \count ($ tags ) > 0 ) {
130125 usort (
131126 $ tags ,
132127 static function (Tag $ aTag , Tag $ bTag ) use ($ values ) {
0 commit comments