10 #type uses of ComponentElement

ComponentRenderTest::checkEmbedWithNested in core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php
Render a card with slots that include a CTA component.
ComponentRenderTest::checkEmbedWithNested in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Render a card with slots that include a CTA component.
ComponentRenderTest::checkEmptyProps in core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php
Ensure that components can have 0 props.
ComponentRenderTest::checkEmptyProps in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensure that components can have 0 props.
ComponentRenderTest::checkInvalidSlot in core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php
Ensure that the slots throw an error for invalid slots.
ComponentRenderTest::checkInvalidSlot in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensure that the slots throw an error for invalid slots.
ComponentRenderTest::checkRenderElementAlters in core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php
Ensures the alter callbacks work properly.
ComponentRenderTest::checkRenderElementAlters in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensures the alter callbacks work properly.
ComponentRenderTest::checkSlots in core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php
Ensure that the slots allow a render array or a scalar when using the render element.
ComponentRenderTest::checkSlots in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensure that the slots allow a render array or a scalar when using the render element.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.