You are here

public function EditableFieldsHelper::isAdmin in Editable Fields 1.0.x

Same name and namespace in other branches
  1. 8 src/services/EditableFieldsHelper.php \Drupal\editablefields\services\EditableFieldsHelper::isAdmin()

Check if the user has administer permission.

Return value

bool TRUE if the user has administer permission.

Overrides EditableFieldsHelperInterface::isAdmin

File

src/services/EditableFieldsHelper.php, line 95

Class

EditableFieldsHelper
Class EditableFieldsHelper.

Namespace

Drupal\editablefields\services

Code

public function isAdmin() {
  return $this->currentUser
    ->hasPermission(self::ADMIN_PERMISSION);
}