Commit 9fc59b1e authored by catch's avatar catch
Browse files

Issue #3212521 by Spokje, longwave: cspell dislikes identifer in...

Issue #3212521 by Spokje, longwave: cspell dislikes identifer in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php and will fail any patch touching that file

(cherry picked from commit f09730b5)
(cherry picked from commit 5ddbcc7d)
parent e57b4e16
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -960,24 +960,24 @@ public function buildExposedForm(&$form, FormStateInterface $form_state) {
   *
   * @param array $form
   *   The form.
   * @param string $wrapper_identifer
   * @param string $wrapper_identifier
   *   The key to use for the wrapper element.
   */
  protected function buildValueWrapper(&$form, $wrapper_identifer) {
  protected function buildValueWrapper(&$form, $wrapper_identifier) {
    // If both the field and the operator are exposed, this will end up being
    // called twice. We don't want to wipe out what's already there, so if it
    // exists already, do nothing.
    if (!isset($form[$wrapper_identifer])) {
      $form[$wrapper_identifer] = [
    if (!isset($form[$wrapper_identifier])) {
      $form[$wrapper_identifier] = [
        '#type' => 'fieldset',
      ];

      $exposed_info = $this->exposedInfo();
      if (!empty($exposed_info['label'])) {
        $form[$wrapper_identifer]['#title'] = $exposed_info['label'];
        $form[$wrapper_identifier]['#title'] = $exposed_info['label'];
      }
      if (!empty($exposed_info['description'])) {
        $form[$wrapper_identifer]['#description'] = $exposed_info['description'];
        $form[$wrapper_identifier]['#description'] = $exposed_info['description'];
      }
    }
  }