The path_is_admin function call has now been replaced with the router service:

$is_admin = \Drupal::service('router.admin_context')->isAdminRoute();
(see https://api.drupal.org/api/drupal/includes%21path.inc/function/path_is_a...)

Comments

mike.davis created an issue. See original summary.

mike.davis’s picture

Category: Bug report » Task

  • mike.davis committed 33ce25c on 8.x-2.x
    Issue #2612358 by mike.davis: Replace path_is_admin with the router...
mike.davis’s picture

Status: Active » Fixed

This has been updated now

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.