public function UuidFilter::filter in Replication 8.2
Same name and namespace in other branches
- 8 src/Plugin/ReplicationFilter/UuidFilter.php \Drupal\replication\Plugin\ReplicationFilter\UuidFilter::filter()
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/ UuidFilter.php, line 37
Class
- UuidFilter
- Provides filtering by UUID.
Namespace
Drupal\replication\Plugin\ReplicationFilterCode
public function filter(EntityInterface $entity) {
$configuration = $this
->getConfiguration();
return in_array($entity
->uuid(), $configuration['uuids']);
}