lithium\data\Model::title PHP Method

title() public method

By default, when generating the title for an object, it uses the the field specified in the 'title' key of the model's meta data definition. Override this method to generate custom titles for objects of this model's type.
See also: lithium\data\Model::$_meta
See also: lithium\data\Entity::__toString()
public title ( object $entity ) : string
$entity object The `Entity` instance on which the title method is called.
return string Returns the title representation of the entity on which this method is called.
    public function title($entity)
    {
        $field = static::meta('title');
        return $entity->{$field};
    }