FEATURE: move contactform into own repository
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user