src/Utility/ICal/IcEmail.php
public function getEmailContent() : string
    {
        $result = '';

        $module = Inflector::singularize($this->table->getAlias());
        $displayValue = $this->getDisplayValue();
        $user = $this->getUserString();
        $action = $this->entity->isNew() ? 'created' : 'updated';

        // Example: Lead Foobar created by System
        $result = sprintf("%s %s %s by %s", $module, $displayValue, $action, $user);

        $changeLog = $this->getChangelog();
        if (!empty($changeLog)) {
            $result .= "\n\n";
            $result .= $changeLog;
            $result .= "\n";
        }

        $result .= "\n\n";
        $result .= "See more: ";
        $result .= $this->getEntityUrl();

        return $result;
    }
public function getEmailContent() : string
    {
        $result = '';

        $module = Inflector::singularize($this->table->getAlias());
        $displayValue = $this->getDisplayValue();
        $user = $this->getUserString();
        $action = $this->entity->isNew() ? 'created' : 'updated';

        // Example: Lead Foobar created by System
        $result = sprintf("%s %s %s by %s", $module, $displayValue, $action, $user);

        $changeLog = $this->getChangelog();
        if (!empty($changeLog)) {
            $result .= "\n\n";
            $result .= $changeLog;
            $result .= "\n";
        }

        $result .= "\n\n";
        $result .= "See more: ";
        $result .= $this->getEntityUrl();

        return $result;
    }
public function getEmailContent ( ) : string { $ result = '' ; $ module = Inflector :: singularize ( $ this -> table -> getAlias ( ) ) ; $ displayValue = $ this -> getDisplayValue ( ) ; $ user = $ this -> getUserString ( ) ; $ action = $ this -> entity -> isNew ( ) ? 'created' : 'updated' ; // Example: Lead Foobar created by System $ result = sprintf ( "%s %s %s by %s" , $ module , $ displayValue , $ action , $ user ) ; $ changeLog = $ this -> getChangelog ( ) ; if ( ! empty ( $ changeLog ) ) { $ result .= "\n\n" ; $ result .= $ changeLog ; $ result .= "\n" ; } $ result .= "\n\n" ; $ result .= "See more: " ; $ result .= $ this -> getEntityUrl ( ) ; return $ result ; }
Get email content

@return string
Get email content