Field Handler
Handler plugins for Views fields.
Field handlers handle both querying and display of fields in views.
Field handler plugins extend \Drupal\views\Plugin\views\field\FieldPluginBase. They must be attributed with \Drupal\views\Attribute\ViewsField attribute, and they must be in namespace directory Plugin\views\field.
The following items can go into a hook_views_data() implementation in a field section to affect how the field handler will behave:
- additional fields: An array of fields that should be added to the query. The array is in one of these forms:
// Simple form, for fields within the same table.
['identifier' => fieldname]
// Form for fields in a different table.
['identifier' => ['table' => tablename, 'field' => fieldname]]
As many fields as are necessary may be in this array.
- click sortable: If TRUE (default), this field may be click sorted.