You are here

public function ReplicationFilterBase::getConfiguration in Replication 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ReplicationFilter/ReplicationFilterBase.php \Drupal\replication\Plugin\ReplicationFilter\ReplicationFilterBase::getConfiguration()

For replication filters, the plugin configuration contains what would be passed as "query_params" to a CouchDB filter function.

Overrides ConfigurablePluginInterface::getConfiguration

4 calls to ReplicationFilterBase::getConfiguration()
DocIdsFilter::filter in src/Plugin/ReplicationFilter/DocIdsFilter.php
Filter the given entity.
EntityTypeFilter::filter in src/Plugin/ReplicationFilter/EntityTypeFilter.php
Filter the given entity.
PublishedFilter::filter in src/Plugin/ReplicationFilter/PublishedFilter.php
Filter the given entity.
UuidFilter::filter in src/Plugin/ReplicationFilter/UuidFilter.php
Filter the given entity.

File

src/Plugin/ReplicationFilter/ReplicationFilterBase.php, line 50

Class

ReplicationFilterBase
Provides a base class for replication filters.

Namespace

Drupal\replication\Plugin\ReplicationFilter

Code

public function getConfiguration() {
  if (empty($this->configuration)) {
    return $this
      ->defaultConfiguration();
  }
  return $this->configuration;
}