# themify-builder/trunk/modules/module-code.php

Themify Builder, version trunk. 29 lines.

- Page: https://pluginprobe.com/plugins/themify-builder/trunk/code/modules/module-code.php
- Raw: https://pluginprobe.com/plugins/themify-builder/trunk/raw/modules/module-code.php
- Modified: 2024-08-13T03:07:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/themify-builder/trunk/code/modules/module-code.php#L10-L20`.

```php
<?php
defined('ABSPATH') || exit;

/**
 * Module Name: Code
 * Description: Display formatted code
 */
class TB_Code_Module extends Themify_Builder_Component_Module {

    public static function get_module_name():string {
        return __('Display Code', 'themify');
    }

    public static function get_module_icon():string {
        return 'notepad';
    }

    public static function get_js_css():array {
        return array(
            'async' => true,
            'css' => 1,
            'js' => 1
        );
    }

	public static function get_translatable_text_fields( $module ) : array {
		return [ 'm_t' ];
	}
}
```
