mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Add collection labels to api
This commit is contained in:
@@ -2019,7 +2019,13 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$ret = array(
|
||||
'base_id' => $collection->get_base_id(),
|
||||
'collection_id' => $collection->get_coll_id(),
|
||||
'name' => $collection->get_label($this->app['locale.I18n']),
|
||||
'name' => $collection->get_name(),
|
||||
'labels' => array(
|
||||
'fr' => $collection->get_label('fr'),
|
||||
'en' => $collection->get_label('en'),
|
||||
'de' => $collection->get_label('de'),
|
||||
'nl' => $collection->get_label('nl'),
|
||||
),
|
||||
'record_amount' => $collection->get_record_amount(),
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user