class LayoutSectionAccessCheck implements AccessInterface (View source)

internal  Tagged services are internal.
 

Provides an access check for the Layout Builder UI.

Deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\layout_builder\Access\LayoutBuilderAccessCheck instead. See https://www.drupal.org/node/3039551.

Methods

access(RouteMatchInterface $route_match, AccountInterface $account)

Checks routing access to the layout.

Details

AccessResultInterface access(RouteMatchInterface $route_match, AccountInterface $account)

Checks routing access to the layout.

Parameters

RouteMatchInterface $route_match

The current route match.

AccountInterface $account

The currently logged in account.

Return Value

AccessResultInterface

The access result.