Source of file ContentBlock.php
Size: 1,086 Bytes - Last Modified: 2021-12-23T10:20:13+00:00
/var/www/docs.ssmods.com/process/src/src/model/ContentBlock.php
12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?php namespace SheaDawson\Blocks\Model; class ContentBlock extends Block { private static $table_name = "ContentBlock"; /** * If the singular name is set in a private static $singular_name, it cannot be changed using the translation files * for some reason. Fix it by defining a method that handles the translation. * @return string */ public function singular_name() { return _t('ContentBlock.SINGULARNAME', 'Content Block'); } /** * If the plural name is set in a private static $plural_name, it cannot be changed using the translation files * for some reason. Fix it by defining a method that handles the translation. * @return string */ public function plural_name() { return _t('ContentBlock.PLURALNAME', 'Content Blocks'); } private static $db = [ 'Content' => 'HTMLText', ]; public function fieldLabels($includeRelations = true) { return array_merge( parent::fieldLabels($includeRelations), [ 'Content' => _t('Block.Content', 'Content'), ] ); } } |