src/class-options-page.php
public function render_ignored_plugins() {
		$plugins = get_plugins();
		$plugins = array_map( function( $key, $value ) {
			if ( false === strpos( $key, '/' ) ) {
				$slug = basename( $key, '.php' );
			} else {
				$slug = dirname( $key );
			}

			return [
				'name' => $value['Name'],
				'slug' => $slug,
			];
		}, array_keys( $plugins ), $plugins );

		echo $this->template->render( 'options/ignored-packages.php', [ // WPCS: XSS OK.
			'ignored_packages' => $this->options->ignored_plugins,
			'packages' => $plugins,
			'type' => 'plugins',
		] );
	}
public function render_ignored_plugins() {
		$plugins = get_plugins();
		$plugins = array_map( function( $key, $value ) {
			if ( false === strpos( $key, '/' ) ) {
				$slug = basename( $key, '.php' );
			} else {
				$slug = dirname( $key );
			}

			return [
				'name' => $value['Name'],
				'slug' => $slug,
			];
		}, array_keys( $plugins ), $plugins );

		echo $this->template->render( 'options/ignored-packages.php', [ // WPCS: XSS OK.
			'ignored_packages' => $this->options->ignored_plugins,
			'packages' => $plugins,
			'type' => 'plugins',
		] );
	}
public function render_ignored_plugins ( ) { $ plugins = get_plugins ( ) ; $ plugins = array_map ( function ( $ key , $ value ) { if ( false === strpos ( $ key , '/' ) ) { $ slug = basename ( $ key , '.php' ) ; } else { $ slug = dirname ( $ key ) ; } return [ 'name' => $ value [ 'Name' ] , 'slug' => $ slug , ] ; } , array_keys ( $ plugins ) , $ plugins ) ; echo $ this -> template -> render ( 'options/ignored-packages.php' , [ // WPCS: XSS OK. 'ignored_packages' => $ this -> options -> ignored_plugins , 'packages' => $ plugins , 'type' => 'plugins' , ] ) ; }
Renders the ignored plugins field.

@return void
Renders the ignored plugins field .