CoreFiles by mySites.guru
JsonapiView.php54 lines, 935 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
bb5cbfec83f99f7f17d1f5794bd2db4f
sha1
b593b1987d1961b0646aa10f4457f2945589a8e5
sha256
31d72ebf34922bca749e9651e00e0c14b92dd566e06dec455ebd6b8d3166c8a2
<?php
/**
 * @package     Joomla.API
 * @subpackage  com_menus
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Menus\Api\View\Menus;

defined('_JEXEC') or die;

use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;

/**
 * The menus view
 *
 * @since  4.0.0
 */
class JsonapiView extends BaseApiView
{
	/**
	 * The fields to render item in the documents
	 *
	 * @var  array
	 * @since  4.0.0
	 */
	protected $fieldsToRenderItem = [
		'id',
		'menutype',
		'title',
		'description',
		'client_id',
		'count_published',
		'count_unpublished',
		'count_trashed',
	];

	/**
	 * The fields to render items in the documents
	 *
	 * @var  array
	 * @since  4.0.0
	 */
	protected $fieldsToRenderList  = [
		'id',
		'asset_id',
		'menutype',
		'title',
		'description',
		'client_id',
	];
}

No other release has this exact content. See every version of this file.