31 return $component->getContent();
39 return [Component\Legacy\Legacy::class];
50 return $component->withAdditionalOnLoadCode(
function ($id) use ($custom_signals) {
52 foreach ($custom_signals as $custom_signal) {
53 $signal_id = $custom_signal[
'signal'];
54 $signal_code = $custom_signal[
'js_code'];
55 $code .=
"$(document).on('$signal_id', function(event, signalData) { $signal_code });";
An exception for terminatinating execution or to throw for unit testing.
getAllCustomSignals()
Get a list of all registered signals and their custom JavaScript code.
registerSignals(Legacy $component)
getComponentInterfaceName()
@inheritdocs
Base class for all component renderers.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.
checkComponent(Component $component)
Check if a given component fits this renderer and throw \LogicError if that is not the case.
A component is the most general form of an entity in the UI.
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
An entity that renders components to a string output.