Files - 3.x - examples

Primary tabs

Title Deprecated File name Namespace Summary
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 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/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/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.autotextfields') %} {% set ajax_submit =…
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 permissioned = path('examples.menu_example.permissioned') %} {% set route_only =…
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/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/phpunit_example/templates/description.html.twig {# Description text for the PHPUnit Example. #} {% trans %} <h2>PHPUnit for Drupal: A very basic how-to.</h2> <h3>How to use this example module</h3> <p>You really should be reading the various docblocks in the test…
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/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 {# Description text for the JavaScript Example. #} {% set js_weights = path('js_example.weights') %} {% set js_accordion = path('js_example.accordion') %} {% trans %} <p>Drupal includes jQuery and jQuery…
description.html.twig modules/page_example/templates/description.html.twig Contains the text of the page_example explanation page
description.html.twig modules/tour_example/templates/description.html.twig {# Description text for the Tour Example. Note that we have defined some 'buttons.' These page elements are targets for the tour we're demonstrating. The id of the target elements are used in the tour definition file as targets for…
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/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/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…
description.html.twig modules/tabledrag_example/templates/description.html.twig Contains the text of the tabledrag_example explanation page
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/pager_example/templates/description.html.twig Contains the text of the pager_example explanation page
DescriptionTemplateTrait.php src/Utility/DescriptionTemplateTrait.php Drupal\examples\Utility
DescriptionTraitTest.php tests/src/Kernel/DescriptionTraitTest.php Drupal\Tests\examples\Kernel
DisplayInfoInterface.php modules/phpunit_example/src/DisplayInfoInterface.php Drupal\phpunit_example
DisplayManager.php modules/phpunit_example/src/DisplayManager.php Drupal\phpunit_example
DisplayManagerTest.php modules/phpunit_example/tests/src/Unit/DisplayManagerTest.php Drupal\Tests\phpunit_example\Unit
drupalci.yml ./drupalci.yml drupalci.yml
DynamicFormSections.php modules/ajax_example/src/Form/DynamicFormSections.php Drupal\ajax_example\Form
DynamicFormSectionsTest.php modules/ajax_example/tests/src/FunctionalJavascript/DynamicFormSectionsTest.php Drupal\Tests\ajax_example\FunctionalJavascript
DynamicFormSectionsTest.php modules/ajax_example/tests/src/Functional/DynamicFormSectionsTest.php Drupal\Tests\ajax_example\Functional
EmailExampleGetFormPage.php modules/email_example/src/Form/EmailExampleGetFormPage.php Drupal\email_example\Form
EmailExampleTest.php modules/email_example/tests/src/Functional/EmailExampleTest.php Drupal\Tests\email_example\Functional
email_example.info.yml modules/email_example/email_example.info.yml modules/email_example/email_example.info.yml
email_example.links.menu.yml modules/email_example/email_example.links.menu.yml modules/email_example/email_example.links.menu.yml
email_example.module modules/email_example/email_example.module Example of how to use Drupal's mail API.
email_example.routing.yml modules/email_example/email_example.routing.yml modules/email_example/email_example.routing.yml
EntityAutocomplete.php modules/ajax_example/src/Form/EntityAutocomplete.php Drupal\ajax_example\Form
EntityAutocompleteTest.php modules/ajax_example/tests/src/FunctionalJavascript/EntityAutocompleteTest.php Drupal\Tests\ajax_example\FunctionalJavascript
EventsExampleForm.php modules/events_example/src/Form/EventsExampleForm.php Drupal\events_example\Form
EventsExampleServiceTest.php modules/events_example/tests/src/Kernel/EventsExampleServiceTest.php Drupal\Tests\events_example\Kernel
EventsExampleSubscriber.php modules/events_example/src/EventSubscriber/EventsExampleSubscriber.php Drupal\events_example\EventSubscriber
EventsExampleTest.php modules/events_example/tests/src/Functional/EventsExampleTest.php Drupal\Tests\events_example\Functional
events_example.info.yml modules/events_example/events_example.info.yml modules/events_example/events_example.info.yml
events_example.links.menu.yml modules/events_example/events_example.links.menu.yml modules/events_example/events_example.links.menu.yml
events_example.module modules/events_example/events_example.module Demonstrates how to subscribe to and dispatch events.

Other projects