Yoast\WP\SEO\Surfaces

Helpers_Surface::get_helper_class()protectedYoast 1.0

Get the class name from a helper slug

Метод класса: Helpers_Surface{}

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_helper_class( $helper );
$helper(строка) (обязательный)
The name of the helper.

Код Helpers_Surface::get_helper_class() Yoast 22.4

protected function get_helper_class( $helper ) {
	$helper = \implode( '_', \array_map( 'ucfirst', \explode( '_', $helper ) ) );

	return "Yoast\WP\SEO\Helpers\\{$helper}_Helper";
}