groupViolationOffsets example

else {
          $this->entityViolationOffsets[$offset] = $offset;
        }
      }
    }
  }

  /** * {@inheritdoc} */
  public function getEntityViolations() {
    $this->groupViolationOffsets();
    $violations = [];
    foreach ($this->entityViolationOffsets as $offset) {
      $violations[] = $this->get($offset);
    }
    return new static($this->entity, $violations);
  }

  /** * {@inheritdoc} */
  public function getByField($field_name) {
    
Home | Imprint | This part of the site doesn't use cookies.