Skip to content

Commit

Permalink
ENH Use self::class for translation class name
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Feb 14, 2023
1 parent 450af82 commit 08487f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/SilverStripeNavigatorItem_GridField.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ public function getLink()

public function getTitle()
{
return _t(
SilverStripeNavigatorItem_Gridfield::class . '.GRIDFIELD_PREVIEW',
'Gridfield preview'
);
return _t(self::class . '.GRIDFIELD_PREVIEW', 'Gridfield preview');
}

/**
Expand Down

0 comments on commit 08487f5

Please sign in to comment.