BatchController::__construct

public BatchController::__construct($root) Constructs a new BatchController. Parameters string $root: The app root. File core/modules/system/src/Controller/BatchController.php, line 29 Class BatchController Controller routines for batch routes. Namespace Drupal\system\Controller Code public function __construct($root) { $this->root = $root; }

editor_help

editor_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/editor/editor.module, line 23 Adds bindings for client-side "text editors" to text formats. Code function editor_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.editor': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Text Editor module provides a framework that other module

HelpController::__construct

public HelpController::__construct(RouteMatchInterface $route_match, HelpSectionManager $help_manager) Creates a new HelpController. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. \Drupal\help\HelpSectionManager $help_manager: The help section manager. File core/modules/help/src/Controller/HelpController.php, line 39 Class HelpController Controller routines for help routes. Namespace Drupal\help\Controller Code public function __construct(Ro

DateTimePlus::$inputTimeZoneAdjusted

The prepared timezone object used to construct this date. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 71 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Component\Datetime Code protected $inputTimeZoneAdjusted = '';

FilterFormat::removeFilter

public FilterFormat::removeFilter($instance_id) Removes a filter. Parameters string $instance_id: The ID of a filter plugin to be removed. Overrides FilterFormatInterface::removeFilter File core/modules/filter/src/Entity/FilterFormat.php, line 400 Class FilterFormat Represents a text format. Namespace Drupal\filter\Entity Code public function removeFilter($instance_id) { unset($this->filters[$instance_id]); $this->filterCollection->removeInstanceId($instance_id); }

Routing API

Route page requests to code based on URLs. Overview and terminology The Drupal routing system defines how Drupal responds to URL requests that the web server passes on to Drupal. The routing system is based on the Symfony framework. The central idea is that Drupal subsystems and modules can register routes (basically, URL paths and context); they can also register to respond dynamically to routes, for more flexibility. When Drupal receives a URL request, it will attempt to match the request to

CommentViewBuilder::buildComponents

public CommentViewBuilder::buildComponents(array &$build, array $entities, array $displays, $view_mode) In addition to modifying the content key on entities, this implementation will also set the comment entity key which all comments carry. Throws \InvalidArgumentException Thrown when a comment is attached to an entity that no longer exists. Overrides EntityViewBuilder::buildComponents File core/modules/comment/src/CommentViewBuilder.php, line 84 Class CommentViewBuilder View builder

DateTimePlus::$errors

An array of errors encountered when creating this date. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 91 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Component\Datetime Code protected $errors = array();

AccountForm::buildEntity

public AccountForm::buildEntity(array $form, FormStateInterface $form_state) Builds an updated entity object based upon the submitted form values. For building the updated entity object the form's entity is cloned and the submitted form values are copied to entity properties. The form's entity remains unchanged. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value \Drupal\Core\En

template_preprocess_update_project_status

template_preprocess_update_project_status(&$variables) Prepares variables for update project status templates. Default template: update-project-status.html.twig. Parameters array $variables: An associative array containing: project: An array of information about the project. File core/modules/update/update.report.inc, line 112 Code required only when rendering the available updates report. Code function template_preprocess_update_project_status(&$variables) { // Storing by refer