CoreFiles by mySites.guru
WebAssetAttachBehaviorInterface.php36 lines, 776 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
20d19d9abe188429a002b02e76f3c102
sha1
681b1da77b6f88d7abb0f335dadd2bd579d2e9c1
sha256
976a6327e9f8b555d74240eeeff91e2cea1fea52b9ab3f54a406588e1ce4746c
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\WebAsset;

use Joomla\CMS\Document\Document;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Web Asset Behavior interface
 *
 * @since  4.0.0
 */
interface WebAssetAttachBehaviorInterface
{
    /**
     * Method called when asset attached to the Document.
     * Useful for Asset to add a Script options.
     *
     * @param   Document  $doc  Active document
     *
     * @return void
     *
     * @since   4.0.0
     */
    public function onAttachCallback(Document $doc);
}

The same content is in 154 releases, Joomla 5.0.0-alpha1 to 6.2.0. See them all, or every version of this file.