lithium\data\source\Database::_entityName PHP Method

_entityName() protected method

Returns a fully-qualified table name (i.e. with prefix), quoted.
protected _entityName ( string $entity, array $options = [] ) : string
$entity string A table name or fully-namespaced model class name.
$options array Available options: - `'quoted'` _boolean_: Indicates whether the name should be quoted.
return string Returns a quoted table name.
    protected function _entityName($entity, array $options = array())
    {
        $defaults = array('quoted' => false);
        $options += $defaults;
        if (class_exists($entity, false) && method_exists($entity, 'meta')) {
            $entity = $entity::meta('source');
        }
        return $options['quoted'] ? $this->name($entity) : $entity;
    }