PHP code example of mindfulmarkup / mindfula11y

1. Go to this page and download the library: Download mindfulmarkup/mindfula11y library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mindfulmarkup / mindfula11y example snippets


use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

// Add the heading level column from tt_content to your custom table
ExtensionManagementUtility::addTCAcolumns(
    'tx_yourextension_domain_model_custom',
    [
        'tx_mindfula11y_headinglevel' => $GLOBALS['TCA']['tt_content']['columns']['tx_mindfula11y_headinglevel'],
    ]
);

ExtensionManagementUtility::addToAllTCAtypes(
    'tx_yourextension_domain_model_custom',
    'tx_mindfula11y_headinglevel',
    '',
    'after:title' // or any field you want
);