BareHtmlPageRendererInterface

Bare HTML page renderer. By "bare HTML page", we mean that the following hooks that allow for "normal" pages are not invoked: hook_page_attachments() hook_page_attachments_alter() hook_page_top() hook_page_bottom() Examples of bare HTML pages are: install.php update.php authorize.php maintenance mode exception handlers i.e. use this when rendering HTML pages in limited environments. Otherwise, use a _controller route, and return a render array. This will cause a main content renderer

BareHtmlPageRenderer::$htmlResponseAttachmentsProcessor

The HTML response attachments processor service. Type: \Drupal\Core\Render\AttachmentsResponseProcessorInterface File core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php, line 22 Class BareHtmlPageRenderer Default bare HTML page renderer. Namespace Drupal\Core\Render Code protected $htmlResponseAttachmentsProcessor;

BareHtmlPageRenderer

Default bare HTML page renderer. Hierarchy class \Drupal\Core\Render\BareHtmlPageRenderer implements BareHtmlPageRendererInterface File core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php, line 8 Namespace Drupal\Core\Render Members Name Modifiers Type Description BareHtmlPageRenderer::$htmlResponseAttachmentsProcessor protected property The HTML response attachments processor service. BareHtmlPageRenderer::$renderer protected property The renderer service. Ba

BareHtmlPageRenderer::renderBarePage

public BareHtmlPageRenderer::renderBarePage(array $content, $title, $page_theme_property, array $page_additions = []) Renders a bare page. Parameters array $content: The main content to render in the 'content' region. string $title: The title for this maintenance page. string $page_theme_property: The #theme property to set on #type 'page'. array $page_additions: Additional regions to add to the page. May also be used to pass the #show_messages property for #type 'page'. Return value \Drupal\

BareHtmlPageRenderer::$renderer

The renderer service. Type: \Drupal\Core\Render\Renderer File core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php, line 15 Class BareHtmlPageRenderer Default bare HTML page renderer. Namespace Drupal\Core\Render Code protected $renderer;

ban_help

ban_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/ban/ban.module, line 13 Allows to ban individual IP addresses. Code function ban_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.ban': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Ban module allows administrators to ban visits to their site from individual IP addresses. For

BanIpManagerInterface::isBanned

public BanIpManagerInterface::isBanned($ip) Returns if this IP address is banned. Parameters string $ip: The IP address to check. Return value bool TRUE if the IP address is banned, FALSE otherwise. File core/modules/ban/src/BanIpManagerInterface.php, line 19 Class BanIpManagerInterface Provides an interface defining a BanIp manager. Namespace Drupal\ban Code public function isBanned($ip);

BanIpManagerInterface::banIp

public BanIpManagerInterface::banIp($ip) Bans an IP address. Parameters string $ip: The IP address to ban. File core/modules/ban/src/BanIpManagerInterface.php, line 35 Class BanIpManagerInterface Provides an interface defining a BanIp manager. Namespace Drupal\ban Code public function banIp($ip);

ban_schema

ban_schema() Implements hook_schema(). File core/modules/ban/ban.install, line 11 Install, update and uninstall functions for the Ban module. Code function ban_schema() { $schema['ban_ip'] = array( 'description' => 'Stores banned IP addresses.', 'fields' => array( 'iid' => array( 'description' => 'Primary Key: unique ID for IP addresses.', 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, ), 'ip' =>

BanIpManagerInterface::findAll

public BanIpManagerInterface::findAll() Finds all banned IP addresses. Return value \Drupal\Core\Database\StatementInterface The result of the database query. File core/modules/ban/src/BanIpManagerInterface.php, line 27 Class BanIpManagerInterface Provides an interface defining a BanIp manager. Namespace Drupal\ban Code public function findAll();