Files - 4.0.x - examples

Primary tabs

Title Deprecated File name Namespace Summary
accordion.css modules/js_example/css/accordion.css .accordionWrapper { background: #fff; float: left; width: 80%; box-sizing: border-box; box-shadow: 0 1.5em 85px 0 rgba(0, 0, 0, 0.2); } .accordionItem { float: left; display: block; width: 100%; box-sizing: border-box; font-family:…
accordion.html.twig modules/js_example/templates/accordion.html.twig Template file for js_example module.
ActionExampleTest.php modules/action_example/tests/src/Functional/ActionExampleTest.php Drupal\Tests\theming_example\Functional
action_example.info.yml modules/action_example/action_example.info.yml modules/action_example/action_example.info.yml
action_example.schema.yml modules/action_example/config/schema/action_example.schema.yml modules/action_example/config/schema/action_example.schema.yml
AddClass.php modules/phpunit_example/src/AddClass.php Drupal\phpunit_example
AddClassTest.php modules/phpunit_example/tests/src/Unit/AddClassTest.php Drupal\Tests\phpunit_example\Unit
ajax-example-base.css modules/ajax_example/css/ajax-example-base.css /* * @file * CSS for ajax_example. */ /* Put some buttons inline, for nicer formatting. */ .ajax-example-inline { display: inline-block; }
AjaxAddMore.php modules/form_api_example/src/Form/AjaxAddMore.php Drupal\form_api_example\Form
AjaxAddRemoveElements.php modules/form_api_example/src/Form/AjaxAddRemoveElements.php Drupal\form_api_example\Form
AjaxColorForm.php modules/form_api_example/src/Form/AjaxColorForm.php Drupal\form_api_example\Form
AjaxColorFormTest.php modules/form_api_example/tests/src/FunctionalJavascript/AjaxColorFormTest.php Drupal\Tests\form_api_example\FunctionalJavascript
AjaxExampleController.php modules/ajax_example/src/Controller/AjaxExampleController.php Drupal\ajax_example\Controller
AjaxExampleMenuTest.php modules/ajax_example/tests/src/Functional/AjaxExampleMenuTest.php Drupal\Tests\ajax_example\Functional
AjaxWizardTest.php modules/ajax_example/tests/src/FunctionalJavascript/AjaxWizardTest.php Drupal\Tests\ajax_example\FunctionalJavascript
ajax_example.info.yml modules/ajax_example/ajax_example.info.yml modules/ajax_example/ajax_example.info.yml
ajax_example.libraries.yml modules/ajax_example/ajax_example.libraries.yml modules/ajax_example/ajax_example.libraries.yml
ajax_example.links.menu.yml modules/ajax_example/ajax_example.links.menu.yml modules/ajax_example/ajax_example.links.menu.yml
ajax_example.module modules/ajax_example/ajax_example.module AJAX Examples module file with basic examples.
ajax_example.routing.yml modules/ajax_example/ajax_example.routing.yml modules/ajax_example/ajax_example.routing.yml
Autotextfields.php modules/ajax_example/src/Form/Autotextfields.php Drupal\ajax_example\Form
AutotextfieldsTest.php modules/ajax_example/tests/src/FunctionalJavascript/AutotextfieldsTest.php Drupal\Tests\ajax_example\FunctionalJavascript
BasicExample.php modules/action_example/src/Plugin/Action/BasicExample.php Drupal\action_example\Plugin\Action
BatchExampleForm.php modules/batch_example/src/Form/BatchExampleForm.php Drupal\batch_example\Form
BatchExampleWebTest.php modules/batch_example/tests/src/Functional/BatchExampleWebTest.php Drupal\Tests\batch_example\Functional
batch_example.info.yml modules/batch_example/batch_example.info.yml modules/batch_example/batch_example.info.yml
batch_example.install modules/batch_example/batch_example.install Install, update, and uninstall functions for the batch_example module.
batch_example.links.menu.yml modules/batch_example/batch_example.links.menu.yml modules/batch_example/batch_example.links.menu.yml
batch_example.module modules/batch_example/batch_example.module Outlines how a module can use the Batch API.
batch_example.routing.yml modules/batch_example/batch_example.routing.yml modules/batch_example/batch_example.routing.yml
BlockExampleController.php modules/block_example/src/Controller/BlockExampleController.php Drupal\block_example\Controller
BlockExampleMenuTest.php modules/block_example/tests/src/Functional/BlockExampleMenuTest.php Drupal\Tests\block_example\Functional
BlockExampleTest.php modules/block_example/tests/src/Functional/BlockExampleTest.php Drupal\Tests\block_example\Functional
block_example.info.yml modules/block_example/block_example.info.yml modules/block_example/block_example.info.yml
block_example.links.menu.yml modules/block_example/block_example.links.menu.yml modules/block_example/block_example.links.menu.yml
block_example.module modules/block_example/block_example.module Module file for block_example.
block_example.routing.yml modules/block_example/block_example.routing.yml modules/block_example/block_example.routing.yml
block_example.schema.yml modules/block_example/config/schema/block_example.schema.yml modules/block_example/config/schema/block_example.schema.yml
BuildDemo.php modules/form_api_example/src/Form/BuildDemo.php Drupal\form_api_example\Form
CacheExampleForm.php modules/cache_example/src/Form/CacheExampleForm.php Drupal\cache_example\Form
CacheExampleTest.php modules/cache_example/tests/src/Functional/CacheExampleTest.php Drupal\Tests\cache_example\Functional
cache_example.info.yml modules/cache_example/cache_example.info.yml modules/cache_example/cache_example.info.yml
cache_example.links.menu.yml modules/cache_example/cache_example.links.menu.yml modules/cache_example/cache_example.links.menu.yml
cache_example.module modules/cache_example/cache_example.module Demonstrates how a module can use the Cache API.
cache_example.routing.yml modules/cache_example/cache_example.routing.yml modules/cache_example/cache_example.routing.yml
ColorBackgroudFormatter.php modules/field_example/src/Plugin/Field/FieldFormatter/ColorBackgroudFormatter.php Drupal\field_example\Plugin\Field\FieldFormatter
ColorBackgroundFormatterTest.php modules/field_example/tests/src/Functional/ColorBackgroundFormatterTest.php Drupal\Tests\field_example\Functional
ColorPickerWidget.php modules/field_example/src/Plugin/Field/FieldWidget/ColorPickerWidget.php Drupal\field_example\Plugin\Field\FieldWidget
ColorPickerWidgetTest.php modules/field_example/tests/src/Functional/ColorPickerWidgetTest.php Drupal\Tests\field_example\Functional
ConfigEntityExampleTest.php modules/config_entity_example/tests/src/Functional/ConfigEntityExampleTest.php Drupal\Tests\config_entity_example\Functional

Other projects