Issue #1973762 by chx, cosmicdreams, yched: Add example to field_info_field_map return docs
parent
6daf6f637d
commit
492ce213c9
|
|
@ -157,6 +157,17 @@ function field_behaviors_widget($op, $instance) {
|
||||||
* - type: The field type.
|
* - type: The field type.
|
||||||
* - bundles: The bundles in which the field appears, as an array with entity
|
* - bundles: The bundles in which the field appears, as an array with entity
|
||||||
* types as keys and the array of bundle names as values.
|
* types as keys and the array of bundle names as values.
|
||||||
|
* Example:
|
||||||
|
* @code
|
||||||
|
* array(
|
||||||
|
* 'body' => array(
|
||||||
|
* 'bundles' => array(
|
||||||
|
* 'node' => array('page', 'article'),
|
||||||
|
* ),
|
||||||
|
* 'type' => 'text_with_summary',
|
||||||
|
* ),
|
||||||
|
* );
|
||||||
|
* @endcode
|
||||||
*/
|
*/
|
||||||
function field_info_field_map() {
|
function field_info_field_map() {
|
||||||
return Field::fieldInfo()->getFieldMap();
|
return Field::fieldInfo()->getFieldMap();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue