CoreFiles by mySites.guru
TableColumnsAssetItem.php40 lines, 971 bytes, from Joomla_4.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta1
md5
85e3ca7fd8c20a291da104b55f7def05
sha1
e82a9898305dc7f360e370647207be8e0e88d387
sha256
d3def584f48a041437569926960809d9c77f987761d135ab40fb8d54de8ecfcf
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\WebAsset\AssetItem;

\defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Document\Document;
use Joomla\CMS\Language\Text;
use Joomla\CMS\WebAsset\WebAssetAttachBehaviorInterface;
use Joomla\CMS\WebAsset\WebAssetItem;

/**
 * Web Asset Item class for tables.column asset
 *
 * @since  4.2.0
 */
class TableColumnsAssetItem extends WebAssetItem implements WebAssetAttachBehaviorInterface
{
	/**
	 * Method called when asset attached to the Document.
	 * Used to add the language strings required by the script.
	 *
	 * @param   Document  $doc  Active document
	 *
	 * @return  void
	 *
	 * @since   4.2.0
	 */
	public function onAttachCallback(Document $doc)
	{
		// Add table-columns.js language strings
		Text::script('JGLOBAL_COLUMNS');
	}
}

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