function FilterFormatRepositoryInterface::getAllFormats

Same name and namespace in other branches
  1. main core/modules/filter/src/FilterFormatRepositoryInterface.php \Drupal\filter\FilterFormatRepositoryInterface::getAllFormats()

Returns all enabled formats.

Return value

array<string, \Drupal\filter\FilterFormatInterface> An array of text format objects, keyed by the format ID, and ordered by their weight.

File

core/modules/filter/src/FilterFormatRepositoryInterface.php, line 21

Class

FilterFormatRepositoryInterface
Provides an interface for a repository for filter formats.

Namespace

Drupal\filter

Code

public function getAllFormats() : array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.