<commit_before>Create a new block inside your project
=====================================

Put all your project specific cms blocks inside a ***blocks*** folder. This blocks folder is placed in the projects root folder.

An example code of a block could look like this: (The file Test is placed in ***blocks/Test.php***

```
<?php
namespace app\blocks;

class Test extends \cmsadmin\base\Block
{
    public function jsonFromArray()
    {
        return [
            'vars' => [
                ['var' => 'heading', 'label' => 'Uebeschrift 1', 'type' => 'zaa-input-text']
            ]
        ];
    }
    
    public function getExtraVars()
    {
    	return [
    		'time' => time(),
    		'upperHeading' => strtopupper($this->getVarValue('heading')),
    	];<commit_msg>custom blocks md added php syntax<commit_after>Create a new block inside your project
=====================================

Put all your project specific cms blocks inside a ***blocks*** folder. This blocks folder is placed in the projects root folder.

An example code of a block could look like this: (The file Test is placed in ***blocks/Test.php***

```php
<?php
namespace app\blocks;

class Test extends \cmsadmin\base\Block
{
    public function jsonFromArray()
    {
        return [
            'vars' => [
                ['var' => 'heading', 'label' => 'Uebeschrift 1', 'type' => 'zaa-input-text']
            ]
        ];
    }
    
    public function getExtraVars()
    {
    	return [
    		'time' => time(),
    		'upperHeading' => strtopupper($this->getVarValue('heading')),
    	];
{'fraction_non_alphanumeric': 0.1688888888888889, 'fraction_numerical': 0.0012698412698412698, 'mean_word_length': 2.7523809523809524, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1983715', 'n_tokens_mistral': 452, 'n_tokens_neox': 444, 'n_words': 150}