Commit 95babe8a authored by Nikolay Grachev's avatar Nikolay Grachev
Browse files

Issue #3497181 fix: Negate option is handled wrong

parent 347b93a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ class NodePublishedState extends ConditionPluginBase implements ContainerFactory

    if (empty($node)) {
      // Ignore if node context isn't available.
      return TRUE;
      return !$this->isNegated();
    }

    /** @var \Drupal\node\NodeStorageInterface$node_storage */