-
Notifications
You must be signed in to change notification settings - Fork 611
/
DefineElementInnerHtmlEvent.php
53 lines (45 loc) · 1.24 KB
/
DefineElementInnerHtmlEvent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\events;
/**
* DefineElementInnerHtmlEvent class.
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 4.0.0
* @deprecated in 5.0.0.
*/
class DefineElementInnerHtmlEvent extends ElementEvent
{
/**
* @var string The context the element is going to be shown in (`index`, `field`, etc.).
*/
public string $context;
/**
* @var string The size of the element (`small` or `large`).
*/
public string $size;
/**
* @var bool Whether the element status should be shown (if the element type has statuses).
*/
public bool $showStatus;
/**
* @var bool Whether the element thumb should be shown (if the element has one).
*/
public bool $showThumb;
/**
* @var bool Whether the element label should be shown.
*/
public bool $showLabel;
/**
* @var bool Whether to show the draft name beside the label if the element is a draft of a published element.
*/
public bool $showDraftName;
/**
* @var string The element’s pre-rendered inner HTML.
*/
public string $innerHtml;
}