Skip to content

Commit

Permalink
Merge pull request #291 from creative-commoners/pulls/3.2/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 17, 2024
2 parents de3f9bc + 5bc5479 commit 69839ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TagField.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function getSourceList()
* Set the model class name for tags
*
* @param DataList $sourceList
* @return self
* @return TagField
*/
public function setSourceList($sourceList)
{
Expand All @@ -210,7 +210,7 @@ public function Field($properties = [])
{
$this->addExtraClass('entwine');

return $this->customise($properties)->renderWith(self::class);
return $this->customise($properties)->renderWith(TagField::class);
}

/**
Expand Down Expand Up @@ -618,9 +618,9 @@ public function getSchemaStateDefaults()
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;
}
}

0 comments on commit 69839ec

Please sign in to comment.