How I can access file content from Document hook ?
----------------------------------------
namespace Espo\Custom\Hooks\Document;
use Espo\ORM\Entity;
use Espo\Core\Utils\Util;
class CustomDocHook extends \Espo\Core\Hooks\Base
{
......
public function beforeSave(Entity $entity, array $options = [])
{
$GLOBALS['log']->warning( 'beforeSave CustomDocHook ' . $entity->id);
try
{
$entity ??????? how I can get file content here ?
----------------------------------------
namespace Espo\Custom\Hooks\Document;
use Espo\ORM\Entity;
use Espo\Core\Utils\Util;
class CustomDocHook extends \Espo\Core\Hooks\Base
{
......
public function beforeSave(Entity $entity, array $options = [])
{
$GLOBALS['log']->warning( 'beforeSave CustomDocHook ' . $entity->id);
try
{
$entity ??????? how I can get file content here ?
Comment