28 lines
714 B
PHP
Executable File
28 lines
714 B
PHP
Executable File
<?php
|
|
namespace Modules\ContactForm\Handlers;
|
|
|
|
use App\CMS\Handlers\History;
|
|
|
|
class ContactFormHistory extends History
|
|
{
|
|
/**
|
|
* Translate column name for history view
|
|
*
|
|
* @param $column
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public static function parseColumnName($column)
|
|
{
|
|
// try to translate as contact form field
|
|
$translationString = 'contactform::admin/history.column' . ucfirst($column);
|
|
$translation = trans($translationString);
|
|
|
|
// when translation is not available, try to fallback into core fields
|
|
if ($translation == $translationString) {
|
|
return parent::parseColumnName($column);
|
|
}
|
|
|
|
return $translation;
|
|
}
|
|
} |