You are here

protected function SampleCsv::getFieldNames in Bulk User Registration 8

Returns the CSV field names.

Return value

string[] Array of field names.

1 call to SampleCsv::getFieldNames()
SampleCsv::getCsvData in src/Controller/SampleCsv.php
Returns the sample CSV data.

File

src/Controller/SampleCsv.php, line 68

Class

SampleCsv
Sample CSV controller.

Namespace

Drupal\bulk_user_registration\Controller

Code

protected function getFieldNames() {
  $standardFields = [
    'username',
    'email',
    'status',
    'role',
  ];
  $extraFields = \Drupal::moduleHandler()
    ->invokeAll('bulk_user_registration_extra_fields');
  return array_merge($standardFields, $extraFields);
}