Comment to "entity_info" service call
-
Hello SehaSky !
If $iContentId variable isn't passed as the argument then it is calculated with the method _getContent. For the profile-based modules like Persons it has the following syntax:
protected function _getContent($iContentId = 0, $sFuncGetContent = 'getContentInfoById')
{
if(!$iContentId && bx_get('id') === false && bx_get('profile_id') !== false) {
$oProfile = BxDolProfile::getInstance((int)bx_get('profile_id'));
if($oProfile)
$iContentId = $oProfile->getContentId();
}
return parent::_getContent($iContentId, $sFuncGetContent);
}
So by default, firstly it will look the GET id or profile_id variables.