Skip to content

Commit

Permalink
Add comment for assetPath method
Browse files Browse the repository at this point in the history
  • Loading branch information
carry0987 committed Jul 29, 2024
1 parent 870d189 commit 403c4e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ public function compressCSS(bool $css)
return $this;
}

/**
* Process a callable that modifies asset paths
*
* A callback function that accepts a string (path) and a string (type), and returns a string (transformed path)
* @param callable(string, string):string $path_holder
*/
public function assetPath(callable $path_holder)
{
self::$asset->setPathHolder($path_holder);
Expand Down

0 comments on commit 403c4e4

Please sign in to comment.