You are here

protected function CivicrmEntityViewsData::processViewsDataForTextLong in CiviCRM Entity 8.3

Processes the views data for a text field with formatting.

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.

Overrides EntityViewsData::processViewsDataForTextLong

File

src/CivicrmEntityViewsData.php, line 791

Class

CivicrmEntityViewsData

Namespace

Drupal\civicrm_entity

Code

protected function processViewsDataForTextLong($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) {
  if ($field_column_name === 'value') {
    $views_field['real field'] = $field_definition
      ->getName();
  }
  if ($field_column_name === 'format') {
    $views_field = NULL;
  }
}