Search for render

  1. Search 7.x-1.x for render
  2. Search 4.0.x for render
  3. Other projects
Title Object type File name Summary
AjaxExampleController::renderLinkRenderableArray function modules/ajax_example/src/Controller/AjaxExampleController.php Demonstrates a clickable AJAX-enabled link using the 'use-ajax' class.
ContactListBuilder::render function modules/content_entity_example/src/Entity/Controller/ContactListBuilder.php We override ::render() so that we can add our own content above the table.
parent::render() is where EntityListBuilder creates the table using our
buildHeader() and buildRow() implementations.
Example: Render API group modules/render_example/render_example.module The Render API
consists of two parts: one, structured arrays that provide data, and hints
about how that data should be rendered, and two, a rendering pipeline that
can be used to render these arrays into various output formats. This example
module…
Marquee::preRenderMarquee function modules/render_example/src/Element/Marquee.php Pre-render callback; Process custom attribute options.
render-array.html.twig file modules/render_example/templates/render-array.html.twig Default theme implementation for render_array_help.
render-example-add-div.html.twig file modules/render_example/templates/render-example-add-div.html.twig Default theme implementation for render_example_add_div.
render-example-marquee.html.twig file modules/render_example/templates/render-example-marquee.html.twig Default theme implementation for the marquee render element.
RenderExampleController class modules/render_example/src/Controller/RenderExampleController.php Provides module description page and examples of building render arrays.
RenderExampleController.php file modules/render_example/src/Controller/RenderExampleController.php
RenderExampleController::arrays function modules/render_example/src/Controller/RenderExampleController.php Examples of defining content using renderable arrays.
RenderExampleController::create function modules/render_example/src/Controller/RenderExampleController.php Instantiates a new instance of this class.
RenderExampleController::getModuleName function modules/render_example/src/Controller/RenderExampleController.php Name of our module.
RenderExampleController::lazyBuilder function modules/render_example/src/Controller/RenderExampleController.php Example #lazy_builder callback.
RenderExampleController::postRenderAddPrefix function modules/render_example/src/Controller/RenderExampleController.php Example '#post_render' callback function.
RenderExampleController::preRender function modules/render_example/src/Controller/RenderExampleController.php A #pre_render callback, expand array to include additional example info.
RenderExampleController::preRenderAddSuffix function modules/render_example/src/Controller/RenderExampleController.php Example '#pre_render' function.
RenderExampleController::trustedCallbacks function modules/render_example/src/Controller/RenderExampleController.php Lists the trusted callbacks provided by the implementing class.
RenderExampleController::__construct function modules/render_example/src/Controller/RenderExampleController.php Constructs a new BlockController instance.
RenderExampleDemoForm class modules/render_example/src/Form/RenderExampleDemoForm.php Provides the form for toggling module features on and off.
RenderExampleDemoForm.php file modules/render_example/src/Form/RenderExampleDemoForm.php
RenderExampleDemoForm::$moduleHandler property modules/render_example/src/Form/RenderExampleDemoForm.php Module handler service.
RenderExampleDemoForm::buildForm function modules/render_example/src/Form/RenderExampleDemoForm.php Form constructor.
RenderExampleDemoForm::create function modules/render_example/src/Form/RenderExampleDemoForm.php Instantiates a new instance of this class.
RenderExampleDemoForm::getEditableConfigNames function modules/render_example/src/Form/RenderExampleDemoForm.php Gets the configuration names that will be editable.
RenderExampleDemoForm::getFormId function modules/render_example/src/Form/RenderExampleDemoForm.php Returns a unique string identifying the form.
RenderExampleDemoForm::submitForm function modules/render_example/src/Form/RenderExampleDemoForm.php Form submission handler.
RenderExampleDemoForm::__construct function modules/render_example/src/Form/RenderExampleDemoForm.php Constructs a \Drupal\system\ConfigFormBase object.
RenderExampleMenuTest class modules/render_example/tests/src/Functional/RenderExampleMenuTest.php Test the user-facing menus in Render Example.
RenderExampleMenuTest.php file modules/render_example/tests/src/Functional/RenderExampleMenuTest.php
RenderExampleMenuTest::$defaultTheme property modules/render_example/tests/src/Functional/RenderExampleMenuTest.php The theme to install as the default for testing.
RenderExampleMenuTest::$modules property modules/render_example/tests/src/Functional/RenderExampleMenuTest.php Modules to enable.
RenderExampleMenuTest::$profile property modules/render_example/tests/src/Functional/RenderExampleMenuTest.php The installation profile to use with this test.
RenderExampleMenuTest::testRenderExampleLinksExist function modules/render_example/tests/src/Functional/RenderExampleMenuTest.php Verify and validate that default menu links were loaded for this module.
RenderExampleTest class modules/render_example/tests/src/Functional/RenderExampleTest.php Test the render example functionality.
RenderExampleTest.php file modules/render_example/tests/src/Functional/RenderExampleTest.php
RenderExampleTest::$defaultTheme property modules/render_example/tests/src/Functional/RenderExampleTest.php The theme to install as the default for testing.
RenderExampleTest::$modules property modules/render_example/tests/src/Functional/RenderExampleTest.php Modules to enable.
RenderExampleTest::$profile property modules/render_example/tests/src/Functional/RenderExampleTest.php Most of our render array altering behaviors are dependent on the standard
installation profile, so we'll use that here.
RenderExampleTest::testRenderExample function modules/render_example/tests/src/Functional/RenderExampleTest.php Functional tests of the pages we made.
render_example.css file modules/render_example/css/render_example.css .render_example--array {
border-bottom: 2px solid #000;
margin-top: 10px;
padding-left: 5px;
padding-top: 5px;
}

.render_example--code {
background: #f1f1f1;
border: 1px solid #000;
display: block;
max-height: 300px;
overflow:…
render_example.info.yml file modules/render_example/render_example.info.yml modules/render_example/render_example.info.yml
render_example.libraries.yml file modules/render_example/render_example.libraries.yml modules/render_example/render_example.libraries.yml
render_example.links.menu.yml file modules/render_example/render_example.links.menu.yml modules/render_example/render_example.links.menu.yml
render_example.module file modules/render_example/render_example.module Demonstrates using Drupal's Render API.
render_example.routing.yml file modules/render_example/render_example.routing.yml modules/render_example/render_example.routing.yml
render_example.schema.yml file modules/render_example/config/schema/render_example.schema.yml modules/render_example/config/schema/render_example.schema.yml
render_example.settings.yml file modules/render_example/config/install/render_example.settings.yml modules/render_example/config/install/render_example.settings.yml
render_example_preprocess_block function modules/render_example/render_example.module Implements hook_preprocess_block().
render_example_preprocess_page function modules/render_example/render_example.module Implements hook_preprocess_page().
render_example_theme function modules/render_example/render_example.module Implements hook_theme().