| Current Path : /home/digilove/public_html/plugins/system/forseo/vendor/weeblr/forseo/api/controller/ |
| Current File : /home/digilove/public_html/plugins/system/forseo/vendor/weeblr/forseo/api/controller/menu.php |
<?php
/**
* Project: 4SEO
*
* @package 4SEO
* @copyright Copyright Weeblr llc - 2020-2024
* @author Yannick Gaultier - Weeblr llc
* @license GNU General Public License version 3; see LICENSE.md
* @version 6.2.0.2478
* @date 2024-10-03
*/
namespace Weeblr\Forseo\Api\Controller;
use Weeblr\Wblib\Forseo\Wb;
use Weeblr\Wblib\Forseo\Base;
use Weeblr\Wblib\Forseo\System;
use Weeblr\Wblib\Forseo\Api;
// no direct access
defined('_JEXEC') || defined('WBLIB_EXEC') || die;
class Menu extends Api\Controller
{
/**
* Builds up an array of data for use in API response.
*
* @param array $options
*
* @return array|\Throwable
*/
public function get($request, $options)
{
$groupedMenuItems = $this->platform->getMenuItems();
$count = count($groupedMenuItems);
return [
'data' => $groupedMenuItems,
'count' => $count,
'total' => $count,
];
}
}