FEATURE: move contactform into own repository

This commit is contained in:
Michal Kváček
2017-08-22 20:17:39 +02:00
commit 6b0509a1db
36 changed files with 1039 additions and 0 deletions
+28
View File
@@ -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;
}
}