final public function get_excludelists(string $plugindir) : array {
        $filters = [];

        if (!empty($plugindir)) {
            $plugindir .= "/";
        }

        foreach ($this->excludelistfolders as $folder) {
            $filters[] = html_writer::tag('directory', "{$plugindir}{$folder}", ['suffix' => '.php']);
        }

        foreach ($this->excludelistfiles as $file) {
            $filters[] = html_writer::tag('file', "{$plugindir}{$file}");
        }

        return $filters;
    }
final public function get_excludelists(string $plugindir) : array {
        $filters = [];

        if (!empty($plugindir)) {
            $plugindir .= "/";
        }

        foreach ($this->excludelistfolders as $folder) {
            $filters[] = html_writer::tag('directory', "{$plugindir}{$folder}", ['suffix' => '.php']);
        }

        foreach ($this->excludelistfiles as $file) {
            $filters[] = html_writer::tag('file', "{$plugindir}{$file}");
        }

        return $filters;
    }
final public function get_excludelists ( string $ plugindir ) : array { $ filters = [ ] ; if ( ! empty ( $ plugindir ) ) { $ plugindir .= "/" ; } foreach ( $ this -> excludelistfolders as $ folder ) { $ filters [ ] = html_writer :: tag ( 'directory' , "{$plugindir}{$folder}" , [ 'suffix' => '.php' ] ) ; } foreach ( $ this -> excludelistfiles as $ file ) { $ filters [ ] = html_writer :: tag ( 'file' , "{$plugindir}{$file}" ) ; } return $ filters ; }
Get the formatted XML list of files and folders to exclude.

@param   string  $plugindir The root of the plugin, relative to the dataroot.
@return  array
Get the formatted XML list of files and folders to exclude .