mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 18:44:30 +00:00
Merge pull request #393 from romainneutron/collection-labels-api
[3.8] Add collection labels to api
This commit is contained in:
@@ -2026,7 +2026,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