class RenderingHelper implements ProtectedContextAwareInterface (View source)

Render Content Dimension Names, Node Labels

These helpers are WORK IN PROGRESS and NOT STABLE YET

Properties

protected NodeTypeManager $nodeTypeManager
protected array $contentDimensionsConfiguration

Methods

void
injectConfigurationManager(ConfigurationManager $configurationManager)

No description

string
renderDimensions(array $dimensions)

Render a human-readable description for the passed $dimensions

array
findPresetInDimension(array $dimensionConfiguration, string $dimensionValue)

No description

string
labelForNodeType(string $nodeTypeName)

Render the label for the given $nodeTypeName

bool
allowsCallOfMethod(string $methodName)

All methods are considered safe

Details

void injectConfigurationManager(ConfigurationManager $configurationManager)

No description

Parameters

ConfigurationManager $configurationManager

Return Value

void

string renderDimensions(array $dimensions)

Render a human-readable description for the passed $dimensions

Parameters

array $dimensions

Return Value

string

protected array findPresetInDimension(array $dimensionConfiguration, string $dimensionValue)

No description

Parameters

array $dimensionConfiguration
string $dimensionValue

Return Value

array

the preset matching $dimensionValue

string labelForNodeType(string $nodeTypeName)

Render the label for the given $nodeTypeName

Parameters

string $nodeTypeName

Return Value

string

Exceptions

NodeTypeNotFoundException

bool allowsCallOfMethod(string $methodName)

All methods are considered safe

Parameters

string $methodName

Return Value

bool