class StringUtil

Methods

static string
trim(string $string)

Returns the trimmed data.

static string|null
fqcnToBlockPrefix(string $fqcn)

Converts a fully-qualified class name to a block prefix.

Details

at line 34
static string trim(string $string)

Returns the trimmed data.

Parameters

string $string

Return Value

string

at line 50
static string|null fqcnToBlockPrefix(string $fqcn)

Converts a fully-qualified class name to a block prefix.

Parameters

string $fqcn The fully-qualified class name

Return Value

string|null The block prefix or null if not a valid FQCN