added missing cancreate methods and property to StringTagField.

This commit is contained in:
Sander Hagenaars 2016-08-21 12:34:19 +02:00
parent 35773d4a56
commit f6a56982c0

View File

@ -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;
}
}