class Field

Static service container wrapper for Field.

Hierarchy

  • class \Drupal\field\Field

Expanded class hierarchy of Field

3 files declare their use of Field
field.info.inc in drupal/core/modules/field/field.info.inc
Field Info API, providing information about available fields and field types.
FieldEditForm.php in drupal/core/modules/field_ui/lib/Drupal/field_ui/Form/FieldEditForm.php
Contains \Drupal\field_ui\Form\FieldEditForm.
FieldImportCreateTest.php in drupal/core/modules/field/lib/Drupal/field/Tests/FieldImportCreateTest.php
Contains \Drupal\field\Tests\FieldImportCreateTest.
8 string references to 'Field'
DataFieldRow::buildOptionsForm in drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataFieldRow.php
Overrides \Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
DisplayOverview::buildForm in drupal/core/modules/field_ui/lib/Drupal/field_ui/DisplayOverview.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
field.info.yml in drupal/core/modules/field/field.info.yml
drupal/core/modules/field/field.info.yml
field.schema.yml in drupal/core/modules/field/config/schema/field.schema.yml
drupal/core/modules/field/config/schema/field.schema.yml
field_views_field_default_views_data in drupal/core/modules/field/field.views.inc
Default views data implementation for a field.

... See full list

File

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

Namespace

Drupal\field
View source
class Field {

  /**
   * Returns the field info service.
   *
   * @return \Drupal\field\FieldInfo
   *   Returns a field info object.
   */
  public static function fieldInfo() {
    return Drupal::service('field.info');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Field::fieldInfo public static function Returns the field info service.