mirror of
https://github.com/flextype/flextype.git
synced 2025-08-06 21:26:48 +02:00
fix(expressions): fix Entries Expressions methods
This commit is contained in:
@@ -27,11 +27,11 @@ class EntriesExpression implements ExpressionFunctionProviderInterface
|
||||
{
|
||||
public function getFunctions()
|
||||
{
|
||||
return [new ExpressionFunction('entries', static fn () => '(new EntriesTwigExpressionsMethods())', static fn ($arguments) => (new EntriesTwigExpressionsMethods()))];
|
||||
return [new ExpressionFunction('entries', static fn () => '(new EntriesExpressionsMethods())', static fn ($arguments) => (new EntriesExpressionsMethods()))];
|
||||
}
|
||||
}
|
||||
|
||||
class EntriesTwigExpressionsMethods
|
||||
class EntriesExpressionsMethods
|
||||
{
|
||||
use Macroable;
|
||||
|
||||
@@ -73,6 +73,6 @@ class EntriesTwigExpressionsMethods
|
||||
*/
|
||||
public function has(string $id): bool
|
||||
{
|
||||
return entries()->entries->has($id);
|
||||
return entries()->has($id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user