FilterFormat::getPermissionName

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

public function getPermissionName() {
  return !$this->isFallbackFormat() ? 'use text format ' . $this->id() : FALSE;
}
doc_Drupal
2016-10-29 09:14:32
Comments
Leave a Comment

Please login to continue.