From 58b3f4cac3675180fd5a7484eb7128f9209e5c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 15 May 2015 10:24:38 +0200 Subject: [PATCH] Update docs to specify that the array of field identifiers can be provided to field type handlers --- Resources/doc/USAGE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/doc/USAGE.md b/Resources/doc/USAGE.md index 8d7ec84..56b8e47 100644 --- a/Resources/doc/USAGE.md +++ b/Resources/doc/USAGE.md @@ -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: