Ejemplo n.º 1
0
 public function match(SourceInterface $source)
 {
     if ($source->data()->get('draft')) {
         if (!$this->publishDrafts) {
             // If we are not configured to publish drafts we should
             // inform the source that it should be skipped. This
             // will ensure that it won't be touched by any other
             // part of the system for this run.
             $source->setShouldBeSkipped();
             return false;
         }
     }
     return true;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setShouldBeSkipped()
 {
     $this->source->setShouldBeSkipped();
 }