File "Module_With_Assets.php"

Full Path: /home/rattkxnv/byattorney.com/wp-content/plugins/google-site-kit/includes/Core/Modules/Module_With_Assets.php
File size: 944 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Interface Google\Site_Kit\Core\Modules\Module_With_Assets
 *
 * @package   Google\Site_Kit
 * @copyright 2021 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Core\Modules;

use Google\Site_Kit\Core\Assets\Asset;

/**
 * Interface for a module that includes assets.
 *
 * @since 1.7.0
 * @access private
 * @ignore
 */
interface Module_With_Assets {

	/**
	 * Gets the assets to register for the module.
	 *
	 * @since 1.7.0
	 *
	 * @return Asset[] List of Asset objects.
	 */
	public function get_assets();

	/**
	 * Enqueues all assets necessary for the module.
	 *
	 * @since 1.7.0
	 * @since 1.37.0 Added the $asset_context argument.
	 *
	 * @param string $asset_context Context for page, see `Asset::CONTEXT_*` constants.
	 */
	public function enqueue_assets( $asset_context = Asset::CONTEXT_ADMIN_SITEKIT );
}