interface ChangesInterface in Replication 8
Same name and namespace in other branches
- 8.2 src/Changes/ChangesInterface.php \Drupal\replication\Changes\ChangesInterface
Define and build a changeset for a Workspace.
@todo {@link https://www.drupal.org/node/2282295 Implement remaining feed query types.} @todo break this class into a value object and a service object: one that defines the parameters for getting the changeset and the other for executing the code to build the changeset
Hierarchy
- interface \Drupal\replication\Changes\ChangesInterface
Expanded class hierarchy of ChangesInterface
All classes that implement ChangesInterface
1 file declares its use of ChangesInterface
- ChangesFactoryTest.php in tests/
src/ Kernel/ ChangesFactoryTest.php
File
- src/
Changes/ ChangesInterface.php, line 14
Namespace
Drupal\replication\ChangesView source
interface ChangesInterface {
/**
* Set the ID of the filter plugin to use to refine the changeset.
*
* @param string $filter
* The plugin id of a Drupal\replication\Plugin\ReplicationFilterInterface.
*
* @return \Drupal\replication\Changes\ChangesInterface
* Returns $this.
*/
public function filter($filter);
/**
* Set the parameters for the filter plugin.
*
* @param array $parameters
* The parameters passed to the filter plugin.
*
* @return \Drupal\replication\Changes\ChangesInterface
* Returns $this.
*/
public function parameters(array $parameters = NULL);
/**
* Set the flag for including entities in the changeset.
*
* @param bool $include_docs
* Whether to include entities in the changeset.
*
* @return \Drupal\replication\Changes\ChangesInterface
* Returns $this.
*/
public function includeDocs($include_docs);
/**
* Sets from what sequence number to check for changes.
*
* @param int $seq
* The sequence ID to start including changes from. Result includes last_seq.
*
* @return \Drupal\replication\Changes\ChangesInterface
* Returns $this.
*/
public function setSince($seq);
/**
* Get the since value.
*
* @return int
*/
public function getSince();
/**
* Sets until what sequence number to check for changes.
*
* @param int $seq
* The sequence ID to stop at.
*
* @return \Drupal\replication\Changes\ChangesInterface
* Returns $this.
*/
public function setStop($seq);
/**
* Set the limit of returned number of items.
*
* @param int $limit
* The limit of returned items.
*
* @return \Drupal\replication\Changes\ChangesInterface
* Returns $this.
*/
public function setLimit($limit);
/**
* Return the changes in a 'normal' way.
*/
public function getNormal();
/**
* Return the changes with a 'longpoll'.
*
* We can implement this method later.
*
* @see https://www.drupal.org/node/2282295
*/
public function getLongpoll();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChangesInterface:: |
public | function | Set the ID of the filter plugin to use to refine the changeset. | 1 |
ChangesInterface:: |
public | function | Return the changes with a 'longpoll'. | 1 |
ChangesInterface:: |
public | function | Return the changes in a 'normal' way. | 1 |
ChangesInterface:: |
public | function | Get the since value. | 1 |
ChangesInterface:: |
public | function | Set the flag for including entities in the changeset. | 1 |
ChangesInterface:: |
public | function | Set the parameters for the filter plugin. | 1 |
ChangesInterface:: |
public | function | Set the limit of returned number of items. | 1 |
ChangesInterface:: |
public | function | Sets from what sequence number to check for changes. | 1 |
ChangesInterface:: |
public | function | Sets until what sequence number to check for changes. | 1 |