Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS
OutputFormatter::space
Метод класса: OutputFormatter{}
Хуков нет.
Возвращает
string.
Использование
$OutputFormatter = new OutputFormatter(); $OutputFormatter->space( $sName, $sType );
- $sName(строка) (обязательный)
- .
- $sType(строка|null)
- .
По умолчанию:null
Код OutputFormatter::space() OutputFormatter::space WC 11.3.0
public function space($sName, $sType = null)
{
$sSpaceString = $this->oFormat->get("Space$sName");
// If $sSpaceString is an array, we have multiple values configured
// depending on the type of object the space applies to
if (is_array($sSpaceString)) {
if ($sType !== null && isset($sSpaceString[$sType])) {
$sSpaceString = $sSpaceString[$sType];
} else {
$sSpaceString = reset($sSpaceString);
}
}
return $this->prepareSpace($sSpaceString);
}