function FilterFormatRepositoryInterface::getFormatsForAccount
Same name and namespace in other branches
- main core/modules/filter/src/FilterFormatRepositoryInterface.php \Drupal\filter\FilterFormatRepositoryInterface::getFormatsForAccount()
Returns only those formats which the specified account can use.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account to check.
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 33
Class
- FilterFormatRepositoryInterface
- Provides an interface for a repository for filter formats.
Namespace
Drupal\filterCode
public function getFormatsForAccount(AccountInterface $account) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.