Mercurial > hg > isophonics-drupal-site
diff core/modules/layout_builder/src/Access/LayoutSectionAccessCheck.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/layout_builder/src/Access/LayoutSectionAccessCheck.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/layout_builder/src/Access/LayoutSectionAccessCheck.php Thu May 09 15:33:08 2019 +0100 @@ -12,6 +12,11 @@ * Provides an access check for the Layout Builder UI. * * @internal + * Tagged services are internal. + * + * @todo 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. */ class LayoutSectionAccessCheck implements AccessInterface { @@ -27,6 +32,7 @@ * The access result. */ public function access(RouteMatchInterface $route_match, AccountInterface $account) { + @trigger_error(__NAMESPACE__ . '\LayoutSectionAccessCheck is 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.', E_USER_DEPRECATED); $section_storage = $route_match->getParameter('section_storage'); if (empty($section_storage)) {