HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/lcc.kaunokolegija.lt/wp-content/plugins/query-monitor/classes/Component_Unknown.php
<?php declare(strict_types = 1);
/**
 * Class representing an unknown component.
 *
 * @package query-monitor
 */

final class QM_Component_Unknown extends QM_Component {
	public function get_name(): string {
		$name = __( 'Unknown', 'query-monitor' );
		$type = $this->type;

		/**
		 * Filters the user-facing name to display for a custom or unknown component.
		 *
		 * The dynamic portion of the hook name, `$type`, refers to the component identifier.
		 *
		 * See also the corresponding filters:
		 *
		 *  - `qm/component_dirs`
		 *  - `qm/component_type/{$type}`
		 *  - `qm/component_context/{$type}`
		 *
		 * @since 3.6.0
		 *
		 * @param string $name The component name.
		 * @param string $file The full file path for the file within the component.
		 */
		$name = apply_filters( "qm/component_name/{$type}", $name, $this->file );

		return $name;
	}
}