protected function PcpService::getUserFields in Profile Complete Percent 8
Returns the user profile fields.
Return value
\Drupal\Core\Field\FieldDefinitionInterface[] Array of field configurations.
1 call to PcpService::getUserFields()
- PcpService::getCompletePercentageData in src/
PcpService.php - Builds array of pcp data.
File
- src/
PcpService.php, line 99
Class
- PcpService
- Class PcpService.
Namespace
Drupal\pcpCode
protected function getUserFields() {
$fields = array_filter($this->entityFieldManager
->getFieldDefinitions('user', 'user'), function ($field_definition) {
return $field_definition instanceof FieldConfigInterface;
});
return $fields;
}