Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer

Rendering_Context::get_text_directionpublicWC 1.0

Get the HTML/CSS text direction.

Method of the class: Rendering_Context{}

No Hooks.

Returns

String.

Usage

$Rendering_Context = new Rendering_Context();
$Rendering_Context->get_text_direction(): string;

Rendering_Context::get_text_direction() code WC 11.0.0

public function get_text_direction(): string {
	return $this->is_rtl() ? 'rtl' : 'ltr';
}