Files - 4.0.x - Examples

Title Deprecated File name Namespace Summary
cron_example.links.menu.yml modules/cron_example/cron_example.links.menu.yml modules/cron_example/cron_example.links.menu.yml
cron_example.module modules/cron_example/cron_example.module Demonstrates use of the Cron API in Drupal - hook_cron().
cron_example.routing.yml modules/cron_example/cron_example.routing.yml modules/cron_example/cron_example.routing.yml
cron_example.schema.yml modules/cron_example/config/schema/cron_example.schema.yml modules/cron_example/config/schema/cron_example.schema.yml
cron_example.settings.yml modules/cron_example/config/install/cron_example.settings.yml modules/cron_example/config/install/cron_example.settings.yml
DbtngExampleAddForm.php modules/dbtng_example/src/Form/DbtngExampleAddForm.php Drupal\dbtng_example\Form
DbtngExampleController.php modules/dbtng_example/src/Controller/DbtngExampleController.php Drupal\dbtng_example\Controller
DbtngExampleRepository.php modules/dbtng_example/src/DbtngExampleRepository.php Drupal\dbtng_example
DbtngExampleRepositoryTest.php modules/dbtng_example/tests/src/Kernel/DbtngExampleRepositoryTest.php Drupal\Tests\dbtng_example\Kernel
DbtngExampleTest.php modules/dbtng_example/tests/src/Functional/DbtngExampleTest.php Drupal\Tests\dbtng_example\Functional
DbtngExampleUpdateForm.php modules/dbtng_example/src/Form/DbtngExampleUpdateForm.php Drupal\dbtng_example\Form
dbtng_example.info.yml modules/dbtng_example/dbtng_example.info.yml modules/dbtng_example/dbtng_example.info.yml
dbtng_example.install modules/dbtng_example/dbtng_example.install Install, update and uninstall functions for the dbtng_example module.
dbtng_example.links.menu.yml modules/dbtng_example/dbtng_example.links.menu.yml modules/dbtng_example/dbtng_example.links.menu.yml
dbtng_example.module modules/dbtng_example/dbtng_example.module This is an example outlining how a module can use the DBTNG database API.
dbtng_example.routing.yml modules/dbtng_example/dbtng_example.routing.yml modules/dbtng_example/dbtng_example.routing.yml
dbtng_example.services.yml modules/dbtng_example/dbtng_example.services.yml modules/dbtng_example/dbtng_example.services.yml
DemoBase.php modules/form_api_example/src/Form/DemoBase.php Drupal\form_api_example\Form
DependentDropdown.php modules/ajax_example/src/Form/DependentDropdown.php Drupal\ajax_example\Form
DependentDropdownTest.php modules/ajax_example/tests/src/Functional/DependentDropdownTest.php Drupal\Tests\ajax_example\Functional
DependentDropdownTest.php modules/ajax_example/tests/src/FunctionalJavascript/DependentDropdownTest.php Drupal\Tests\ajax_example\FunctionalJavascript
description.html.twig modules/tabledrag_example/templates/description.html.twig Contains the text of the tabledrag_example explanation page
description.html.twig modules/field_example/templates/description.html.twig {# Description text for the Field Example. #} {% set edit_content_types = path('entity.node_type.collection') %} {% trans %} <p>The Field Example provides a field composed of an HTML RGB value,…
description.html.twig modules/hooks_example/templates/description.html.twig {# Description text for the Hooks Example. #} {% set help_hooks_example = path('help.page', {'name': 'hooks_example'}) %} {% set node_add_page = path('node.add_page') %} {% set user_login =…
description.html.twig modules/rest_example/templates/description.html.twig {# Description text for the Rest Example. #} {% set rest_client_settings = path('rest_example.client_settings') %} {% set rest_client_actions = path('rest_example.client_actions_index') %} {% trans %} <p>This module will…
description.html.twig modules/ajax_example/templates/description.html.twig {# Description text for the Ajax Example. #} {% set simple_ajax_example = path('ajax_example.simplest') %} {% set ajax_generate_textfields = path('ajax_example.auto_text_fields') %} {% set ajax_submit =…
description.html.twig modules/block_example/templates/description.html.twig {# Description text for the Block Example. #} {% set block_admin_page = url('block.admin_display')['#markup'] %} {% trans %} <p>The Block Example provides three sample blocks which demonstrate the various block APIs.…
description.html.twig modules/form_api_example/templates/description.html.twig {# Description text for the Form API Example. #} {{ attach_library('core/drupal.dialog.ajax') }} {% set simple_form = path('form_api_example.simple_form') %} {% set multistep_form =…
description.html.twig modules/pager_example/templates/description.html.twig Contains the text of the pager_example explanation page
description.html.twig modules/testing_example/templates/description.html.twig {# Description text for the PHPUnit Example. #} {% set sum_in_hands = path('testing_example.sum_in_hands') %} {% trans %} <h2>Testing Frameworks in Drupal</h2> <p>This module <a href={{ sum_in_hands }}>provides a…
description.html.twig modules/page_example/templates/description.html.twig Contains the text of the page_example explanation page
description.html.twig tests/modules/examples_description_test/templates/description.html.twig {* Description template test example. This is a test template that demonstrates how an Examples module can implement its description controller by using a Twig template. *} <!- Template loaded! --> {% trans %} <h2>Sample…
description.html.twig modules/config_simple_example/templates/description.html.twig {# Description text for the Config Simple Example. #} {% set config_simple_form = path('config_simple_example.settings') %} {% trans %} <p>The Config Simple Example module defines a simple translatable config form. You need…
description.html.twig modules/stream_wrapper_example/templates/description.html.twig Contains the description text of an Example explanation/description page
description.html.twig modules/field_permission_example/templates/description.html.twig Contains the text of the field_permission_example explanation/description page
description.html.twig modules/menu_example/templates/description.html.twig {# Description text for the Menu Example. #} {% set custom_access = path('examples.menu_example.custom_access') %} {% set restricted = path('examples.menu_example.restricted') %} {% set route_only =…
description.html.twig modules/config_entity_example/templates/description.html.twig {# Description text for the Config Entity Example. #} {% trans %} <p>The Config Entity Example module defines a Robot entity type. This is a list of the Robot entities currently in your Drupal site.</p><p>By default, when you…
description.html.twig modules/js_example/templates/description.html.twig Default theme implementation for the JavaScript Example module's description.
description.html.twig modules/render_example/templates/description.html.twig {# Description text for the Render API Example. #} {% set arrays_url = path('render_example.arrays') %} {% set alter_url = path('render_example.altering') %} {% trans %} <h2>What are render arrays?</h2> <p> …
description.html.twig modules/node_type_example/templates/description.html.twig {# Description text for the Node type Example. #} {% set content_type_path = path('entity.node_type.collection') %} {% set add_types = path ('node.type_add') %} {% trans %} <p>Config Node Type Example is a basic…
DescriptionTemplateTrait.php src/Utility/DescriptionTemplateTrait.php Drupal\examples\Utility
DescriptionTraitTest.php tests/src/Kernel/DescriptionTraitTest.php Drupal\Tests\examples\Kernel
DisplayInfoInterface.php modules/testing_example/src/DisplayInfoInterface.php Drupal\testing_example
DisplayManager.php modules/testing_example/src/DisplayManager.php Drupal\testing_example
DisplayManagerTest.php modules/testing_example/tests/src/Unit/DisplayManagerTest.php Drupal\Tests\testing_example\Unit
DumperTrait.php modules/file_example/src/Traits/DumperTrait.php Drupal\file_example\Traits
DynamicFormSections.php modules/ajax_example/src/Form/DynamicFormSections.php Drupal\ajax_example\Form
DynamicFormSectionsTest.php modules/ajax_example/tests/src/Functional/DynamicFormSectionsTest.php Drupal\Tests\ajax_example\Functional
DynamicFormSectionsTest.php modules/ajax_example/tests/src/FunctionalJavascript/DynamicFormSectionsTest.php Drupal\Tests\ajax_example\FunctionalJavascript
EmailExampleGetFormPage.php modules/email_example/src/Form/EmailExampleGetFormPage.php Drupal\email_example\Form