Skip to content

Commit

Permalink
Craft 5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseydiloreto committed Feb 21, 2024
1 parent cc89e74 commit 826fffb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Unreleased

### Changed
- Craft 5 compatibility.

## 1.2.3 - 2024-02-21

### Changed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
],
"require": {
"craftcms/cms": "^4.0.0"
"craftcms/cms": "^5.0.0-beta"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/TotalViews.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getInputHtml(mixed $value, ?ElementInterface $element = null): s
/**
* @inheritdoc
*/
public function getTableAttributeHtml(mixed $value, ElementInterface $element): string
public function getPreviewHtml(mixed $value, ElementInterface $element): string
{
return Craft::$app->getView()->renderTemplate('view-count/fields/totalviews-column', [
'totalViews' => $this->_getTotal($element)
Expand Down

0 comments on commit 826fffb

Please sign in to comment.