You are here

public function ConflictDiscoveryBase::discoverConflicts in Conflict 8.2

Discovers conflicts on entities.

Parameters

\Drupal\conflict\Event\EntityConflictDiscoveryEvent: The entity conflict discovery event.

File

src/ConflictDiscovery/ConflictDiscoveryBase.php, line 17

Class

ConflictDiscoveryBase

Namespace

Drupal\conflict\ConflictDiscovery

Code

public function discoverConflicts(EntityConflictDiscoveryEvent $event) {
  $local_entity = $event
    ->getLocalEntity();
  if ($local_entity instanceof ContentEntityInterface) {
    $this
      ->discoverConflictsContentEntity($event);
  }
}