We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a574d24 commit 4d71179Copy full SHA for 4d71179
src/AppBundle/Entity/Tag.php
@@ -55,8 +55,9 @@ public function getName()
55
*/
56
public function jsonSerialize()
57
{
58
- // This method is called when a Tag instance needs be serialized to JSON
59
- // See usage in app/Resources/views/form/fields.html.twig: tags|json_encode
+ // This entity implements JsonSerializable (http://php.net/manual/en/class.jsonserializable.php)
+ // so this method is used to customize its JSON representation when json_encode()
60
+ // is called, for example in tags|json_encode (app/Resources/views/form/fields.html.twig)
61
62
return $this->name;
63
}
0 commit comments