annotate core/lib/Drupal/Component/README.txt @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 Drupal Components are independent libraries that do not depend on the rest of
|
Chris@0
|
2 Drupal in order to function.
|
Chris@0
|
3
|
Chris@0
|
4 Components MAY depend on other Drupal Components or external libraries/packages,
|
Chris@0
|
5 but MUST NOT depend on any other Drupal code.
|
Chris@0
|
6
|
Chris@0
|
7 In other words, only dependencies that can be specified in a composer.json file
|
Chris@0
|
8 of the Component are acceptable dependencies. Every Drupal Component presents a
|
Chris@0
|
9 valid dependency, because it is assumed to contain a composer.json file (even
|
Chris@0
|
10 if it may not exist yet).
|
Chris@0
|
11
|
Chris@0
|
12 Each Component should be in its own namespace, and should be as self-contained
|
Chris@0
|
13 as possible. It should be possible to split a Component off to its own
|
Chris@0
|
14 repository and use as a stand-alone library, independently of Drupal.
|