public function objectTitle($class, $quantity=1)
    {
        return $this->translator->choice(
            $this->langKeyPrefix($this->getClassName($class)).".name",
            $quantity
        );
    }
public function objectTitle($class, $quantity=1)
    {
        return $this->translator->choice(
            $this->langKeyPrefix($this->getClassName($class)).".name",
            $quantity
        );
    }
{@inheritdoc}

@param string|object $class The class or an object of it
@param int $quantity (optional) The quantity (for singular/plural)
@return string A readable title of this object