function EntityViewsData::processViewsDataForUuid
Same name in other branches
- 8.9.x core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::processViewsDataForUuid()
- 10 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::processViewsDataForUuid()
- 11.x core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::processViewsDataForUuid()
Processes the views data for a UUID field.
Parameters
string $table: The table the field is added to.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
array $views_field: The views field data.
string $field_column_name: The field column being processed.
File
-
core/
modules/ views/ src/ EntityViewsData.php, line 696
Class
- EntityViewsData
- Provides generic views integration for entities.
Namespace
Drupal\viewsCode
protected function processViewsDataForUuid($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) {
// It does not make sense for UUID fields to be click sortable.
$views_field['field']['click sortable'] = FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.