public function DocIdsFilter::filter in Replication 8
Filter the given entity.
Parameters
EntityInterface $entity: The entity to filter.
Return value
bool Return TRUE if it should be included, else FALSE.
Overrides ReplicationFilterInterface::filter
File
- src/
Plugin/ ReplicationFilter/ DocIdsFilter.php, line 39
Class
- DocIdsFilter
- Provides filtering by UUID.
Namespace
Drupal\replication\Plugin\ReplicationFilterCode
public function filter(EntityInterface $entity) {
$configuration = $this
->getConfiguration();
return in_array($entity
->uuid(), $configuration['doc_ids']);
}