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

static string trim(string $string)

Returns the trimmed data.

Parameters

string $string

Return Value

string

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