public static function Field::fieldInfo

Returns the field info service.

Return value

\Drupal\field\FieldInfo Returns a field info object.

1 call to Field::fieldInfo()
field_info_instances in drupal/core/modules/field/field.info.inc
Retrieves information about field instances.

File

drupal/core/modules/field/lib/Drupal/field/Field.php, line 23
Contains \Drupal\field\Field.

Class

Field
Static service container wrapper for Field.

Namespace

Drupal\field

Code

public static function fieldInfo() {
  return Drupal::service('field.info');
}