You are here

public static function CustomFilter::getFilters in Custom filter 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/CustomFilter.php \Drupal\customfilter\Entity\CustomFilter::getFilters()

Get all filters.

Return value

array Get an array with all available filters from customfilter. The array elements are objects from this class.

1 call to CustomFilter::getFilters()
customfilter_filter_info_alter in ./customfilter.module
Implements hook_filter_info_alter().

File

src/Entity/CustomFilter.php, line 168

Class

CustomFilter
Defines the entify for a filter in customfilter.

Namespace

Drupal\customfilter\Entity

Code

public static function getFilters() {
  $filters = entity_load_multiple('customfilter');
  if (!is_array($filters)) {
    $filters = array();
  }
  return $filters;
}