You are here

function pcp_get_complete_percentage_data in Profile Complete Percent 8

Same name and namespace in other branches
  1. 5 pcp.module \pcp_get_complete_percentage_data()
  2. 6.2 pcp.module \pcp_get_complete_percentage_data()
  3. 6 pcp.module \pcp_get_complete_percentage_data()
  4. 7 pcp.module \pcp_get_complete_percentage_data()

Builds array of pcp data.

Parameters

\Drupal\user\UserInterface $user: The user to collect the data for.

Return value

array The collected data.

Deprecated

in pcp:8.x-1.0-alpha2 and is removed from pcp:8.x-1.0. Use \Drupal\pcp\PcpService::getCompletePercentageData instead.

See also

https://www.drupal.org/project/pcp/issues/3142318

File

./pcp.inc, line 24
Profile Complete Percentage include file.

Code

function pcp_get_complete_percentage_data(UserInterface $user) {
  return \Drupal::service('pcp.pcp_service')
    ->getCompletePercentageData($user);
}