Create an EditorIsRendering Hook

parent 241fb79d
<?php
namespace Modules\Core\Events;
use Modules\Core\Foundation\Asset\Pipeline\AssetPipeline;
class EditorIsRendering
{
/**
* @var AssetPipeline
*/
private $assetPipeline;
private $editorClass;
private $editorJsPartial;
public function __construct(AssetPipeline $assetPipeline)
{
$this->assetPipeline = $assetPipeline;
}
public function addJs($asset)
{
$this->assetPipeline->requireJs($asset);
return $this;
}
public function addCss($asset)
{
$this->assetPipeline->requireCss($asset);
return $this;
}
/**
* @return mixed
*/
public function getEditorClass()
{
return $this->editorClass;
}
/**
* @param mixed $editorClass
*/
public function setEditorClass($editorClass)
{
$this->editorClass = $editorClass;
}
/**
* @return mixed
*/
public function getEditorJsPartial()
{
return $this->editorJsPartial;
}
/**
* @param mixed $editorJsPartial
*/
public function setEditorJsPartial($editorJsPartial)
{
$this->editorJsPartial = $editorJsPartial;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment