Skip to main content

GV\Source

The \GV\Source class.

Contains the source for \GV\Field values.

For example, "gravityview" fields, like custom content, are sourced from the \GV\View and its \GV\Field configuration. While "gravityforms" fields are sourced from \GV\Entry instances.

Source: stubs/gravityview.php:568

Details​

  • Kind: class
  • Namespace: GV

Properties​

PropertyTypeDescription
$backendstringThe identifier of the backend used for this source.

Methods​

MethodDescription
get_field()Get a \GV\Field instance by ID.

Method Reference​

get_field()​

public static function get_field()

Get a \GV\Field instance by ID.

Accepts a variable number of arguments, see implementations.

Returns​

  • \GV\Field | null — A \GV\Field instance.

Source: stubs/gravityview.php:596