/** * Gets the 'access_manager.check_provider' service. * * This service is shared. * This method always returns the same instance of the service. * * This service is private. * If you want to be able to request this service from the container directly, * make it public, otherwise you might end up with broken code. * * @return \Drupal\Core\Access\CheckProvider A Drupal\Core\Access\CheckProvider instance. */ protected function getAccessManager_CheckProviderService() { $this->services['access_manager.check_provider'] = $instance = new \Drupal\Core\Access\CheckProvider(); $instance->setContainer($this); $instance->addCheckService('access_check.default', 'access', array(0 => '_access'), false); $instance->addCheckService('access_check.entity', 'access', array(0 => '_entity_access'), false); $instance->addCheckService('access_check.entity_create', 'access', array(0 => '_entity_create_access'), false); $instance->addCheckService('access_check.theme', 'access', array(0 => '_access_theme'), false); $instance->addCheckService('access_check.custom', 'access', array(0 => '_custom_access'), false); $instance->addCheckService('access_check.csrf', 'access', array(0 => '_csrf_token'), true); $instance->addCheckService('access_check.contact_personal', 'access', array(0 => '_access_contact_personal_tab'), false); $instance->addCheckService('access_check.field_ui.view_mode', 'access', array(0 => '_field_ui_view_mode_access'), false); $instance->addCheckService('access_check.field_ui.form_mode', 'access', array(0 => '_field_ui_form_mode_access'), false); $instance->addCheckService('access_check.node.revision', 'access', array(0 => '_access_node_revision'), false); $instance->addCheckService('access_check.node.add', 'access', array(0 => '_node_add_access'), false); $instance->addCheckService('access_check.node.preview', 'access', array(0 => '_node_preview_access'), false); $instance->addCheckService('access_check.quickedit.entity_field', 'access', array(0 => '_access_quickedit_entity_field'), false); $instance->addCheckService('access_check.cron', 'access', array(0 => '_access_system_cron'), false); $instance->addCheckService('access_check.db_update', 'access', array(0 => '_access_system_update'), false); $instance->addCheckService('access_check.update.manager_access', 'access', array(0 => '_access_update_manager'), false); $instance->addCheckService('access_check.permission', 'access', array(0 => '_permission'), false); $instance->addCheckService('access_check.user.register', 'access', array(0 => '_access_user_register'), false); $instance->addCheckService('access_check.user.role', 'access', array(0 => '_role'), false); $instance->addCheckService('access_check.user.login_status', 'access', array(0 => '_user_is_logged_in'), false); return $instance; }
/** * Gets the 'access_manager.check_provider' service. * * This service is shared. * This method always returns the same instance of the service. * * This service is private. * If you want to be able to request this service from the container directly, * make it public, otherwise you might end up with broken code. * * @return \Drupal\Core\Access\CheckProvider A Drupal\Core\Access\CheckProvider instance. */ protected function getAccessManager_CheckProviderService() { $this->services['access_manager.check_provider'] = $instance = new \Drupal\Core\Access\CheckProvider(); $instance->setContainer($this); $instance->addCheckService('access_check.default', 'access', array(0 => '_access'), false); $instance->addCheckService('access_check.entity', 'access', array(0 => '_entity_access'), false); $instance->addCheckService('access_check.entity_create', 'access', array(0 => '_entity_create_access'), false); $instance->addCheckService('access_check.theme', 'access', array(0 => '_access_theme'), false); $instance->addCheckService('access_check.custom', 'access', array(0 => '_custom_access'), false); $instance->addCheckService('access_check.csrf', 'access', array(0 => '_csrf_token'), true); $instance->addCheckService('access_check.cron', 'access', array(0 => '_access_system_cron'), false); $instance->addCheckService('access_check.db_update', 'access', array(0 => '_access_system_update'), false); $instance->addCheckService('access_check.permission', 'access', array(0 => '_permission'), false); $instance->addCheckService('access_check.user.register', 'access', array(0 => '_access_user_register'), false); $instance->addCheckService('access_check.user.role', 'access', array(0 => '_role'), false); $instance->addCheckService('access_check.user.login_status', 'access', array(0 => '_user_is_logged_in'), false); return $instance; }