src/events/CreateTwigEvent.php
Rama 5.x · réplica de lectura del repositorio original.
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\events;
use craft\base\Event;
use craft\web\twig\Environment;
/**
* CreateTwigEvent event class.
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 4.3.0
*/
class CreateTwigEvent extends Event
{
/**
* @var string The template mode Twig is being created for (`site` or `cp`)
*/
public string $templateMode;
/**
* @var Environment The Twig environment
*/
public Environment $twig;
}