public FilterFormat::getPermissionName()
Returns the machine-readable permission name for the text format.
Return value
string|bool The machine-readable permission name, or FALSE if the text format is malformed or is the fallback format (which is available to all users).
Overrides FilterFormatInterface::getPermissionName
File
- core/modules/filter/src/Entity/FilterFormat.php, line 247
Class
- FilterFormat
- Represents a text format.
Namespace
Drupal\filter\Entity
Code
1 2 3 | public function getPermissionName() { return ! $this ->isFallbackFormat() ? 'use text format ' . $this ->id() : FALSE; } |
Please login to continue.