function FilterFormat::getPermissionName

Same name in other branches
  1. 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::getPermissionName()
  2. 8.9.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::getPermissionName()
  3. 11.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::getPermissionName()

Overrides FilterFormatInterface::getPermissionName

1 call to FilterFormat::getPermissionName()
FilterFormat::postSave in core/modules/filter/src/Entity/FilterFormat.php
Acts on a saved entity before the insert or update hook is invoked.

File

core/modules/filter/src/Entity/FilterFormat.php, line 267

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Entity

Code

public function getPermissionName() {
    return !$this->isFallbackFormat() ? 'use text format ' . $this->id() : FALSE;
}

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