* Gets the fields used to represent an entity in the IEF table.
   *
   * Modules can alter the output of this method through
   * hook_inline_entity_form_table_fields_alter().
   *
   * @param string[] $bundles
   *   An array of allowed bundles for this widget.
   *
   * @return array
   *   An array of fields keyed by field name. Each field is represented by an
   *   associative array containing the following keys:
   *   - type: 'label', 'field' or 'callback'.
   *   - label: the title of the table field's column in the IEF table.

The use of 'field' here is confusing, because it doesn't mean entity field, it means a column in the table, which isn't necessarily an entity field.

Best to replace with 'table column'.

Comments

joachim created an issue. See original summary.

  • joachim committed bb2d49c on 8.x-1.x
    Issue #3051926 by joachim: Fixed ambiguous terminology in getTableFields...
joachim’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.