lithium\data\Model::title PHP Метод

title() публичный Метод

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.
См. также: lithium\data\Model::$_meta
См. также: lithium\data\Entity::__toString()
public title ( object $entity ) : string
$entity object The `Entity` instance on which the title method is called.
Результат 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};
    }