mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
ENH Use class name instead of self
This commit is contained in:
parent
87e40b5d3b
commit
5bc54796a1
@ -195,7 +195,7 @@ class TagField extends MultiSelectField
|
||||
* Set the model class name for tags
|
||||
*
|
||||
* @param DataList $sourceList
|
||||
* @return self
|
||||
* @return TagField
|
||||
*/
|
||||
public function setSourceList($sourceList)
|
||||
{
|
||||
@ -210,7 +210,7 @@ class TagField extends MultiSelectField
|
||||
{
|
||||
$this->addExtraClass('entwine');
|
||||
|
||||
return $this->customise($properties)->renderWith(self::class);
|
||||
return $this->customise($properties)->renderWith(TagField::class);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -618,9 +618,9 @@ class TagField extends MultiSelectField
|
||||
public function getSchemaDataType(): string
|
||||
{
|
||||
if ($this->getIsMultiple()) {
|
||||
return self::SCHEMA_DATA_TYPE_MULTISELECT;
|
||||
return TagField::SCHEMA_DATA_TYPE_MULTISELECT;
|
||||
}
|
||||
|
||||
return self::SCHEMA_DATA_TYPE_SINGLESELECT;
|
||||
return TagField::SCHEMA_DATA_TYPE_SINGLESELECT;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user