src/Field.php
private function _allowedStyles(): array
    {
        $styles = [];
        $plugins = array_flip($this->_getRedactorConfig()['plugins'] ?? []);
        if (isset($plugins['alignment'])) {
            $styles['text-align'] = true;
        }
        if (isset($plugins['fontcolor'])) {
            $styles['color'] = true;
        }
        if (isset($plugins['fontfamily'])) {
            $styles['font-family'] = true;
        }
        if (isset($plugins['fontsize'])) {
            $styles['font-size'] = true;
        }
        return $styles;
    }
private function _allowedStyles(): array
    {
        $styles = [];
        $plugins = array_flip($this->_getRedactorConfig()['plugins'] ?? []);
        if (isset($plugins['alignment'])) {
            $styles['text-align'] = true;
        }
        if (isset($plugins['fontcolor'])) {
            $styles['color'] = true;
        }
        if (isset($plugins['fontfamily'])) {
            $styles['font-family'] = true;
        }
        if (isset($plugins['fontsize'])) {
            $styles['font-size'] = true;
        }
        return $styles;
    }
private function _allowedStyles ( ) : array { $ styles = [ ] ; $ plugins = array_flip ( $ this -> _getRedactorConfig ( ) [ 'plugins' ] ?? [ ] ) ; if ( isset ( $ plugins [ 'alignment' ] ) ) { $ styles [ 'text-align' ] = true ; } if ( isset ( $ plugins [ 'fontcolor' ] ) ) { $ styles [ 'color' ] = true ; } if ( isset ( $ plugins [ 'fontfamily' ] ) ) { $ styles [ 'font-family' ] = true ; } if ( isset ( $ plugins [ 'fontsize' ] ) ) { $ styles [ 'font-size' ] = true ; } return $ styles ; }
Returns the allowed inline CSS styles, based on the plugins that are enabled.

@return string[]
Returns the allowed inline CSS styles based on the plugins that are enabled .