You are here

protected function DevelDumperManager::hasAccessToDevelInformation in Devel 8

Same name and namespace in other branches
  1. 8.3 src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::hasAccessToDevelInformation()
  2. 8.2 src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::hasAccessToDevelInformation()
  3. 4.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::hasAccessToDevelInformation()

Checks whether a user has access to devel information.

Return value

bool TRUE if the user has the permission, FALSE otherwise.

6 calls to DevelDumperManager::hasAccessToDevelInformation()
DevelDumperManager::debug in src/DevelDumperManager.php
Logs a variable to a drupal_debug.txt in the site's temp directory.
DevelDumperManager::dump in src/DevelDumperManager.php
Dumps information about a variable.
DevelDumperManager::dumpOrExport in src/DevelDumperManager.php
Wrapper for ::dump() and ::export().
DevelDumperManager::export in src/DevelDumperManager.php
Returns a string representation of a variable.
DevelDumperManager::exportAsRenderable in src/DevelDumperManager.php
Returns a render array representation of a variable.

... See full list

File

src/DevelDumperManager.php, line 141

Class

DevelDumperManager
Class DevelDumperManager.

Namespace

Drupal\devel

Code

protected function hasAccessToDevelInformation() {
  return $this->account && $this->account
    ->hasPermission('access devel information');
}