private function getEntityTypeInfo($class)
    {
        $entityType = $this->getEntityType($class);

        if (!$entityType) {
            return [null, null];
        }

        $info = entity_get_info($entityType);

        if (!$info) {
            return [null, null];
        }

        return [$entityType, $info];
    }
private function getEntityTypeInfo($class)
    {
        $entityType = $this->getEntityType($class);

        if (!$entityType) {
            return [null, null];
        }

        $info = entity_get_info($entityType);

        if (!$info) {
            return [null, null];
        }

        return [$entityType, $info];
    }
private function getEntityTypeInfo ( $ class ) { $ entityType = $ this -> getEntityType ( $ class ) ; if ( ! $ entityType ) { return [ null , null ] ; } $ info = entity_get_info ( $ entityType ) ; if ( ! $ info ) { return [ null , null ] ; } return [ $ entityType , $ info ] ; }
Get entity type info for the given class

@param string $class

@return array
If entity type is found, first key is the entity type, second value
is the entity info array
Get entity type info for the given class