src/Field.php
public static function redactorPluginPaths(): array
    {
        if (self::$_pluginPaths !== null) {
            return self::$_pluginPaths;
        }

        $event = new RegisterPluginPathsEvent([
            'paths' => [
                Craft::getAlias('@config/redactor/plugins'),
                dirname(__DIR__).'/lib/redactor-plugins',
            ]
        ]);
        Event::trigger(self::class, self::EVENT_REGISTER_PLUGIN_PATHS, $event);

        return self::$_pluginPaths = $event->paths;
    }
public static function redactorPluginPaths(): array
    {
        if (self::$_pluginPaths !== null) {
            return self::$_pluginPaths;
        }

        $event = new RegisterPluginPathsEvent([
            'paths' => [
                Craft::getAlias('@config/redactor/plugins'),
                dirname(__DIR__).'/lib/redactor-plugins',
            ]
        ]);
        Event::trigger(self::class, self::EVENT_REGISTER_PLUGIN_PATHS, $event);

        return self::$_pluginPaths = $event->paths;
    }
public static function redactorPluginPaths ( ) : array { if ( self :: $ _pluginPaths !== null ) { return self :: $ _pluginPaths ; } $ event = new RegisterPluginPathsEvent ( [ 'paths' => [ Craft :: getAlias ( '@config/redactor/plugins' ) , dirname ( __DIR__ ) . '/lib/redactor-plugins' , ] ] ) ; Event :: trigger ( self :: class , self :: EVENT_REGISTER_PLUGIN_PATHS , $ event ) ; return self :: $ _pluginPaths = $ event -> paths ; }
Returns the registered Redactor plugin paths.

@return string[]
Returns the registered Redactor plugin paths .