You are here

public function RouteWrapper::isPermissionBased in Drupal 7 to 8/9 Module Upgrader 8

Returns if this route has permission-based access.

Return value

bool

File

src/Routing/Drupal7/RouteWrapper.php, line 147

Class

RouteWrapper
Encapsulates a Drupal 7 route (including the link, if any).

Namespace

Drupal\drupalmoduleupgrader\Routing\Drupal7

Code

public function isPermissionBased() {
  return $this
    ->get('access callback') == 'user_access';
}