protected function getAllPermissions() {
    $permissions = &drupal_static(__FUNCTION__);

    if (!isset($permissions)) {
      $permissions = \Drupal::service('user.permissions')->getPermissions();
    }

    return $permissions;
  }
protected function getAllPermissions() {
    $permissions = &drupal_static(__FUNCTION__);

    if (!isset($permissions)) {
      $permissions = \Drupal::service('user.permissions')->getPermissions();
    }

    return $permissions;
  }
protected function getAllPermissions ( ) { $ permissions = & drupal_static ( __FUNCTION__ ) ; if ( ! isset ( $ permissions ) ) { $ permissions = \ Drupal :: service ( 'user.permissions' ) -> getPermissions ( ) ; } return $ permissions ; }
Retrieve all permissions.

@return array
Array of all defined permissions.
Retrieve all permissions .