Skip to content

Commit

Permalink
NEW: Better type default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendeksilverstripe committed Aug 31, 2020
1 parent 8f59904 commit 20d0d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function getCMSFields()
*/
public function getType()
{
return _t(__CLASS__ . '.BlockType', 'Block');
return $this->i18n_singular_name();
}

/**
Expand Down

0 comments on commit 20d0d4b

Please sign in to comment.