Get the real class name of an object (even if its a proxy)
Parameters
object:
Return value
string
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php, line 54
Class
- ClassUtils
- Class and reflection related functionality for objects that
might or not be proxy objects at the moment.
Namespace
Doctrine\Common\Util
Code
public static function getClass($object) {
return self::getRealClass(get_class($object));
}