Bachir Soussi Chiadmi e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
..
ajax_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
batch_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
block_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
cache_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
config_entity_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
content_entity_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
cron_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
css e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
dbtng_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
email_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
events_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
field_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
field_permission_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
file_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
form_api_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
hooks_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
images e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
js_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
node_type_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
page_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
pager_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
phpunit_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
plugin_type_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
queue_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
simpletest_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
src e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
stream_wrapper_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
tabledrag_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
tablesort_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
testing_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
tests e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
tour_example e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
.eslintrc e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
CONTRIBUTING.md e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
LICENSE.txt e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
README.md e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
STANDARDS.md e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
TESTING.md e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
composer.json e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
examples.info.yml e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
examples.libraries.yml e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
examples.module e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش
phpcs.xml.dist e1f9bb3cd0 reinstaled drupal core using composer-drupal/drupal-project 7 سال پیش

README.md

Examples for Developers

Project site: http://drupal.org/project/examples

Code: https://drupal.org/project/examples/git-instructions

Issues: https://drupal.org/project/issues/examples

What Is This?

This set of modules is intended to provide working examples of Drupal 8's features and APIs. The modules strive to be simple, well documented and modification friendly, in order to help developers quickly learn their inner workings.

These examples are meant to teach you about code-level development for Drupal

  1. Some solutions might be better served using a contributed module, so that you don't end up having to re-invent the wheel in PHP. When in doubt, look for an existing contrib project that already does what you want, and contribute to that project.

How To Use The Examples

There are three main ways to interact with the examples in this project:

  1. Enable the modules and use them within Drupal. Not all modules will have obvious things to see within your Drupal installation. For instance, while the Page and Form API examples will display forms, the Database API example does not have much that is visible within Drupal.

  2. Read the code. Much effort has gone into making the example code readable, not only in terms of the code itself, but also the extensive inline comments and documentation blocks.

  3. Browse the code and documentation on the web. There are two main places to do this:

This project ships with a composer.json file. This is meant to illustrate how to provide a composer.json file for a Drupal contrib project. You can read more about how to use Composer with Drupal here: https://www.drupal.org/node/2718229

How To Install The Modules

  1. The Examples project installs like any other Drupal module. There is extensive documentation on how to do this here: https://drupal.org/documentation/install/modules-themes/modules-8 But essentially: Download the tarball and expand it into the modules/ directory in your Drupal 8 installation.

  2. Within Drupal, enable any Example sub-module you wish to explore in Admin menu > Extend.

  3. Rebuild access permissions if you are prompted to.

  4. Profit! The links for Examples material will appear in your Tools menu. This menu appears on the left sidebar by default. You'll need to reenable it if you removed it.

Having seen the behavior of the various example modules, you can move on to reading the code, experimenting with it, and hopefully grasp how things work.

If you find a problem, incorrect comment, obsolete or improper code or such, please search for an issue about it at http://drupal.org/project/issues/examples If there isn't already an issue for it, please create a new one.

Thanks.