Skip to content
Browse files

Document arguments passed to is_indexable_callback

  • Loading branch information...
1 parent 5f5ee8a commit a39170060f54b6bb51b605bb9cf783d16c2148cb @jmikola jmikola committed Apr 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
3 README.md
@@ -497,7 +497,8 @@ returns `true`. Additionally, you may provide a service and method name pair:
is_indexable_callback: [ "%custom_service_id%", "isIndexable" ]
In this case, the callback will be the `isIndexable()` method on the specified
-service. This allows you to do more complex validation (e.g. ACL checks).
+service and the object being considered for indexing will be passed as the only
+argument. This allows you to do more complex validation (e.g. ACL checks).
As you might expect, new entities will only be indexed if the callback returns
`true`. Additionally, modified entities will be updated or removed from the

0 comments on commit a391700

Please sign in to comment.
Something went wrong with that request. Please try again.