You are here

function AbrconfigForm::getFieldsList in Access by Reference 8.2

1 call to AbrconfigForm::getFieldsList()
AbrconfigForm::form in src/Form/AbrconfigForm.php
Gets the actual form array to be built.

File

src/Form/AbrconfigForm.php, line 117

Class

AbrconfigForm
Form handler for the Example add and edit forms.

Namespace

Drupal\access_by_ref\Form

Code

function getFieldsList() {
  $fields = array();
  $bundles = $this
    ->getBundlesList('node');
  foreach ($bundles as $key => $label) {
    $fields[$key] = $this
      ->fieldDataFetch($key, 'node', 'label');
    unset($fields[$key]['body']);
  }
  return $fields;
}