src/Rails/ActionView/Helper/Methods/FormTrait.php
public function objectName($object)
    {
        $names = explode('\\', get_class($object));
        # TODO: Simple underscore
        return $this->getService('inflector')->underscore(end($names));
    }
public function objectName($object)
    {
        $names = explode('\\', get_class($object));
        # TODO: Simple underscore
        return $this->getService('inflector')->underscore(end($names));
    }
public function objectName ( $ object ) { $ names = explode ( '\\' , get_class ( $ object ) ) ; # TODO: Simple underscore return $ this -> getService ( 'inflector' ) -> underscore ( end ( $ names ) ) ; }
Returns the underscored version of the class name of an object.
If the class name has namespaces, they are removed.
This method is intended to be used only by the system. It is
public because it's also used by other classes.

@param object $object
@return string
Returns the underscored version of the class name of an object . If the class name has namespaces they are removed . This method is intended to be used only by the system . It is public because it s also used by other classes .