You are here

class SourceDefinition in Tamper 8

Default class for a source definition.

Hierarchy

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\tamper
View 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

Namesort descending Modifiers Type Description Overrides
SourceDefinition::$list protected property An array of source keys.
SourceDefinition::getList public function Returns an unique list of sources. Overrides SourceDefinitionInterface::getList
SourceDefinition::__construct public function Constructs a new SourceDefinition.