class SourceDefinition in Tamper 8
Default class for a source definition.
Hierarchy
- class \Drupal\tamper\SourceDefinition implements SourceDefinitionInterface
Expanded class hierarchy of SourceDefinition
1 file declares its use of SourceDefinition
- TamperConfigSchemaTest.php in tests/
src/ Kernel/ TamperConfigSchemaTest.php
File
- src/
SourceDefinition.php, line 8
Namespace
Drupal\tamperView source
class SourceDefinition implements SourceDefinitionInterface {
/**
* An array of source keys.
*
* @var array
*/
protected $list = [];
/**
* Constructs a new SourceDefinition.
*
* @param array $list
* An array of source keys.
*/
public function __construct(array $list) {
$this->list = $list;
}
/**
* {@inheritdoc}
*/
public function getList() {
return $this->list;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SourceDefinition:: |
protected | property | An array of source keys. | |
SourceDefinition:: |
public | function |
Returns an unique list of sources. Overrides SourceDefinitionInterface:: |
|
SourceDefinition:: |
public | function | Constructs a new SourceDefinition. |