Rename `__multilineItemListFormField` template to `shared_multilineItemListFormField`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / form / builder / field / MultilineItemListFormField.class.php
CommitLineData
dd0021ce
C
1<?php
2
3namespace wcf\system\form\builder\field;
4
5/**
6 * Implementation of a form field that allows entering a list of items.
7 *
8 * @author Olaf Braun
9 * @copyright 2001-2024 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @since 6.0
12 */
13class MultilineItemListFormField extends ItemListFormField implements INullableFormField
14{
15 use TNullableFormField;
16
17 /**
18 * @inheritDoc
19 */
9252f777 20 protected $templateName = 'shared_multilineItemListFormField';
dd0021ce
C
21
22 /**
23 * @inheritDoc
24 */
25 protected $javaScriptDataHandlerModule = 'WoltLabSuite/Core/Form/Builder/Field/MultilineItemList';
26
27 /**
28 * @see TFilterableSelectionFormField::$filterable
29 */
30 protected bool $filterable = false;
31
32 /**
33 * @see TFilterableSelectionFormField::filterable()
34 */
35 public function filterable(bool $filterable = true): self
36 {
37 $this->filterable = $filterable;
38
39 return $this;
40 }
41
42 /**
43 * @see TFilterableSelectionFormField::isFilterable()
44 */
45 public function isFilterable(): bool
46 {
47 return $this->filterable;
48 }
49}