CheckProviderInterface::loadCheck

public CheckProviderInterface::loadCheck($service_id) Lazy-loads access check services. Parameters string $service_id: The service id of the access check service to load. Return value callable A callable access check. Throws \InvalidArgumentException Thrown when the service hasn't been registered in addCheckService(). \Drupal\Core\Access\AccessException Thrown when the service doesn't implement the required interface. File core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 56 Cl

check_markup

check_markup($text, $format_id = NULL, $langcode = '', $filter_types_to_skip = array()) Runs all the enabled filters on a piece of text. Note: Because filters can inject JavaScript or execute PHP code, security is vital here. When a user supplies a text format, you should validate it using $format->access() before accepting/using it. This is normally done in the validation stage of the Form API. You should for example never make a preview of content in a disallowed format. Note: this functio

CheckProvider::loadDynamicRequirementMap

protected CheckProvider::loadDynamicRequirementMap() Compiles a mapping of requirement keys to access checker service IDs. File core/lib/Drupal/Core/Access/CheckProvider.php, line 148 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected function loadDynamicRequirementMap() { if (isset($this->dynamicRequirementMap)) { return; } // Set them here, so we can use the isset() check above. $this->dynamicRequirementMap = a

CheckProviderInterface::addCheckService

public CheckProviderInterface::addCheckService($service_id, $service_method, array $applies_checks = array(), $needs_incoming_request = FALSE) Registers a new AccessCheck by service ID. Parameters string $service_id: The ID of the service in the Container that provides a check. string $service_method: The method to invoke on the service object for performing the check. array $applies_checks: (optional) An array of route requirement keys the checker service applies to. bool $needs_incoming_requ

CheckProvider::setChecks

public CheckProvider::setChecks(RouteCollection $routes) For each route, saves a list of applicable access checks to the route. Parameters \Symfony\Component\Routing\RouteCollection $routes: A collection of routes to apply checks to. Overrides CheckProviderInterface::setChecks File core/lib/Drupal/Core/Access/CheckProvider.php, line 82 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code public function setChecks(RouteCollection $routes) {

CheckProviderInterface

Provides the available access checkers by service IDs. Access checker services are added by ::addCheckService calls and are loaded by ::loadCheck. The checker provider service and the actual checking is separated in order to not require the full access manager on route build time. Hierarchy interface \Drupal\Core\Access\CheckProviderInterface File core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 16 Namespace Drupal\Core\Access Members Name Modifiers Type Description

CheckProvider::getChecksNeedRequest

public CheckProvider::getChecksNeedRequest() A list of checks that needs the request. Return value array Overrides CheckProviderInterface::getChecksNeedRequest File core/lib/Drupal/Core/Access/CheckProvider.php, line 75 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code public function getChecksNeedRequest() { return $this->checksNeedsRequest; }

CheckProvider::loadCheck

public CheckProvider::loadCheck($service_id) Lazy-loads access check services. Parameters string $service_id: The service id of the access check service to load. Return value callable A callable access check. Throws \InvalidArgumentException Thrown when the service hasn't been registered in addCheckService(). \Drupal\Core\Access\AccessException Thrown when the service doesn't implement the required interface. Overrides CheckProviderInterface::loadCheck File core/lib/Drupal/Core/Access/CheckP

CheckProvider::applies

protected CheckProvider::applies(Route $route) Determine which registered access checks apply to a route. Parameters \Symfony\Component\Routing\Route $route: The route to get list of access checks for. Return value array An array of service ids for the access checks that apply to passed route. File core/lib/Drupal/Core/Access/CheckProvider.php, line 124 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected function applies(Route $ro

CheckProvider::$checkMethods

Array of access check method names keyed by service ID. Type: array File core/lib/Drupal/Core/Access/CheckProvider.php, line 37 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected $checkMethods = array();