mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
added missing cancreate methods and property to StringTagField.
This commit is contained in:
parent
35773d4a56
commit
f6a56982c0
@ -28,6 +28,11 @@ class StringTagField extends DropdownField
|
||||
*/
|
||||
protected $lazyLoadItemLimit = 10;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $canCreate = true;
|
||||
|
||||
/**
|
||||
* @var null|DataObject
|
||||
*/
|
||||
@ -343,4 +348,24 @@ class StringTagField extends DropdownField
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getCanCreate()
|
||||
{
|
||||
return $this->canCreate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $canCreate
|
||||
*
|
||||
* @return static
|
||||
*/
|
||||
public function setCanCreate($canCreate)
|
||||
{
|
||||
$this->canCreate = $canCreate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user