CoreFiles by mySites.guru
FieldsServiceInterface.php41 lines, 843 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
66100912a8c2380254cf1c1d22676cff
sha1
bb4abd79db0772b2a1ae3dd45e5bd74f2744482a
sha256
60287bc3ae1210510cc99a723a6bd878c420d1a59fa196e5bedfb25143630359
<?php
/**
 * Joomla! Content Management System
 *
 * @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\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;
}

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