CoreFiles by mySites.guru
FieldsServiceInterface.php41 lines, 830 bytes, from Joomla_4.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta1
md5
69db7c7ff131984b92b7b00f3a2b4990
sha1
54376dd56f34acfedcc5122f4a4da2c34ebe66da
sha256
0b44bd6e9a62fd025183669bef8b28bd2587421af6d12fcad00b7db36d3d4808
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Fields;

\defined('JPATH_PLATFORM') or die;

/**
 * The fields service.
 *
 * @since  4.0.0
 */
interface FieldsServiceInterface
{
	/**
	 * Returns a valid section for the given section. If it is not valid then null
	 * is returned.
	 *
	 * @param   string  $section  The section to get the mapping for
	 * @param   object  $item     The item
	 *
	 * @return  string|null  The new section
	 *
	 * @since   4.0.0
	 */
	public function validateSection($section, $item = null);

	/**
	 * Returns valid contexts.
	 *
	 * @return  array
	 *
	 * @since   4.0.0
	 */
	public function getContexts(): array;
}

The same content is in 51 releases, Joomla 4.0.0-beta6 to 4.2.0-beta2. See them all, or every version of this file.