Skip to content

Commit

Permalink
Update docs to specify that the array of field identifiers can be pro…
Browse files Browse the repository at this point in the history
…vided to field type handlers
  • Loading branch information
emodric committed May 15, 2015
1 parent fdca73b commit 58b3f4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/doc/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ One special category of meta tag handlers are field type handlers. The bundle pr
The process is similar when implementing generic handlers, but this time around, you need to extend the provided
`Netgen\Bundle\OpenGraphBundle\Handler\FieldType\Handler` abstract handler. This handler will give you access to
`Content` and `Field` objects with which you can generate meta tags. The only requirement is that the first parameter
passed to your handler via configuration always needs to be the identifier of the field to use.
passed to your handler via configuration always needs to be the identifier of the field to use or an array of
field identifiers. In case the array of field identifiers is provided, the first field that has a value will be used.

In your handler, you need to at least implement `supports()` method, which defines which field types your handler
supports, for example:
Expand Down

0 comments on commit 58b3f4c

Please sign in to comment.