-
Notifications
You must be signed in to change notification settings - Fork 381
Add support for "new items" facet. #4996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
demiankatz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting this started, @EreMaijala. I haven't had a chance to do any hands-on testing or to review everything carefully, but see below for a few minor things.
I'll comment further when I have a bit more time!
| * @param string|object|array $target String to translate or an array of text | ||
| * domain and string to translate | ||
| * @param array $tokens Tokens to inject into the translated | ||
| * string | ||
| * @param string $default Default value to use if no translation is | ||
| * found (null for no default). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting suggestions:
| * @param string|object|array $target String to translate or an array of text | |
| * domain and string to translate | |
| * @param array $tokens Tokens to inject into the translated | |
| * string | |
| * @param string $default Default value to use if no translation is | |
| * found (null for no default). | |
| * @param string|object|array $target String to translate or an array of text | |
| * domain and string to translate | |
| * @param array $tokens Tokens to inject into the translated string | |
| * @param string $default Default value to use if no translation is | |
| * found (null for no default). |
| * | ||
| * @return string | ||
| */ | ||
| public function replaceFacet($field, $value, $operator = 'AND') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well add types to new methods...
| public function replaceFacet($field, $value, $operator = 'AND') | |
| public function replaceFacet(string $field, string $value, string $operator = 'AND'): static |
| * @param string $value Facet value | ||
| * @param string $operator Facet type to add (AND, OR, NOT) | ||
| * | ||
| * @return string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this isn't returning a string...
| * @return string | |
| * @return static |
| "version": "2.11.8", | ||
| "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", | ||
| "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", | ||
| "peer": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This random change again!
| "peer": true, |
TODO: