Skip to content

Commit

Permalink
[5.x] Add {{ taxonomy:count }} tag (#10923)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni authored Oct 9, 2024
1 parent 6f1692d commit e2ac85e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Tags/Taxonomy/Taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ public function index()
return $this->output($terms);
}

/**
* {{ taxonomy:count from="" }}
*/
public function count()
{
return $this->terms()->count();
}

protected function terms()
{
return new Terms($this->params);
Expand Down

0 comments on commit e2ac85e

Please sign in to comment.