Merge pull request #83 from sanderha/fix-missing-can-create-methods-stringtagfield

added missing cancreate methods and property to StringTagField.
This commit is contained in:
Daniel Hensby 2016-08-22 10:56:00 +01:00 committed by GitHub
commit 00c950eecf
1 changed files with 25 additions and 0 deletions

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