pcp.inc in Profile Complete Percent 8
Profile Complete Percentage include file.
File
pcp.incView source
<?php
/**
* @file
* Profile Complete Percentage include file.
*/
use Drupal\user\UserInterface;
/**
* Builds array of pcp data.
*
* @param \Drupal\user\UserInterface $user
* The user to collect the data for.
*
* @return 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 https://www.drupal.org/project/pcp/issues/3142318
*/
function pcp_get_complete_percentage_data(UserInterface $user) {
return \Drupal::service('pcp.pcp_service')
->getCompletePercentageData($user);
}
Functions
Name | Description |
---|---|
pcp_get_complete_percentage_data Deprecated | Builds array of pcp data. |