-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathNovaEditorJs.php
37 lines (31 loc) · 967 Bytes
/
NovaEditorJs.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
<?php
declare(strict_types=1);
namespace Advoor\NovaEditorJs;
use Illuminate\Support\HtmlString;
use Illuminate\Support\Facades\Facade;
/**
* @method static HtmlString generateHtmlOutput(iterable|string $data)
* @method static void addRender(string $block, callable $callback)
*
* @see NovaEditorJsConverter
*/
class NovaEditorJs extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'nova-editor-js';
}
/**
* @deprecated since 3.0, use \Advoor\NovaEditorJs\NovaEditorJsField::make
*/
public static function make(mixed $name, $attribute = null, $resolveCallback = null)
{
trigger_deprecation('advoor/nova-editor-js', '3.0', 'NovaEditorJs has been converted to a Facade, use NovaEditorJsField::make instead');
return NovaEditorJsField::make($name, $attribute, $resolveCallback);
}
}