Ctrl K
ComunidadGuías…

src/events/EntryTypeEvent.php

Rama 5.x · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<?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\models\EntryType;

/**
 * Entry type event class.
 *
 * @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
 * @since 3.0.0
 */
class EntryTypeEvent extends Event
{
    /**
     * @var EntryType The entry type model associated with the event.
     */
    public EntryType $entryType;

    /**
     * @var bool Whether the entry type is brand new
     */
    public bool $isNew = false;
}