Drupal 8 Current Router Object
$route = \Drupal::routeMatch()->getRouteObject();
$route = \Drupal::routeMatch()->getRouteObject();
$is_admin = \Drupal::service('router.admin_context')->isAdminRoute($route);
TRUNCATE cache_config;
TRUNCATE cache_container;
TRUNCATE cache_data;
TRUNCATE cache_default;
TRUNCATE cache_discovery;
TRUNCATE cache_dynamic_page_cache;
TRUNCATE cache_entity;
TRUNCATE cache_menu;
TRUNCATE cache_render;
TRUNCATE cache_toolbar;
Angular 2 Entity is a module that provides the ability to expose Drupal entities as Angular 2 components through
Warning: This article was wrote on early Drupal 8.2.x version.
On web security we need to be two steps ahead, then if we expose any resource or path we should not trust that any request is coming from our page.