Builds the list of field mappings.
Return value
array
An associative array, keyed by the field name, containing the following
key-value pairs:
- #title: The human-readable label for this field.
- #default_value: The default value for this field. If not provided, an
empty string will be used.
- #description: A description of this field.
- #required: Whether this field is required.
- #filter: (optional) A method on the plugin to filter field options.
- #toggle: (optional) If this select should be toggled by a checkbox.
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/Mapping.php, line 45
- Definition of Drupal\views\Plugin\views\style\Mapping.
Class
- Mapping
- Allows fields to be mapped to specific use cases.
Namespace
Drupal\views\Plugin\views\style
Code
protected abstract function defineMapping();