class MigrateAccessCheck (View source)

Checks access for migrate_drupal_ui routes.

The Migrate Drupal UI can only be used by user 1. This is because any other user might have different permissions on the source and target site.

This class is designed to be used with '_custom_access' route requirement.

Methods

checkAccess(AccountInterface $account)

Checks if the user is user 1 and grants access if so.

Details

AccessResult checkAccess(AccountInterface $account)

Checks if the user is user 1 and grants access if so.

Parameters

AccountInterface $account

The current user account.

Return Value

AccessResult

The access result.