Verified Commit af48404e authored by Dave Long's avatar Dave Long
Browse files

docs: #3098676 EntityConstraintViolationListInterface::filterByFields...

docs: #3098676 EntityConstraintViolationListInterface::filterByFields documentation is opposite of actual functionality

By: andrewbelcher
By: danchadwick
By: john.oltman
By: smustgrave
(cherry picked from commit 6e6d5d4c)
parent 6763cd1d
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -64,10 +64,8 @@ public function findByCodes(string|array $codes): static;
  /**
   * Filters this violation list by the given fields.
   *
   * The returned object just has violations attached to the provided fields.
   *
   * When violations should be displayed for a sub-set of visible fields only,
   * this method may be used to filter the set of visible violations first.
   * Violations for the provided fields are removed so the returned object just
   * has the remaining violations.
   *
   * @param string[] $field_names
   *   The names of the fields to filter violations for.