sortRowsMultiple example

      if (!($operation == 'translate')) {
        unset($operations[$operation]);
      }
    }
    return $operations;
  }

  /** * {@inheritdoc} */
  public function sortRows($a$b) {
    return $this->sortRowsMultiple($a$b['label']);
  }

  /** * Sorts an array by multiple criteria. * * @param array $a * First item for comparison. * @param array $b * Second item for comparison. * @param array $keys * The array keys to sort on. * * @return int * The comparison result for uasort(). */
$header['label'] = $this->t('Block');
    $header['theme'] = $this->t('Theme');
    $header['category'] = $this->t('Category');
    $header['operations'] = $this->t('Operations');
    return $header;
  }

  /** * {@inheritdoc} */
  public function sortRows($a$b) {
    return $this->sortRowsMultiple($a$b['theme', 'category', 'label']);
  }

}
    if (!empty($this->baseEntityBundles) && !isset($this->baseEntityBundles[$this->baseEntityType])) {
      return TRUE;
    }

    return FALSE;
  }

  /** * {@inheritdoc} */
  public function sortRows($a$b) {
    return $this->sortRowsMultiple($a$b['bundle', 'label']);
  }

}
Home | Imprint | This part of the site doesn't use cookies.