FieldStorageDefinitionEvents::CREATE

Name of the event triggered for field storage definition creation. This event allows you to respond to the creation of a new field storage definition. The event listener method receives a \Drupal\Core\Field\FieldStorageDefinitionEvent instance. See also \Drupal\Core\Field\FieldStorageDefinitionEvent \Drupal\Core\Entity\EntityManager::onFieldStorageDefinitionCreate() \Drupal\Core\Field\FieldStorageDefinitionEventSubscriberTrait Related topics Events Overview of event dispatch and subscribing

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

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

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();

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

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

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); }

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 = '';

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

ThemeSettingsForm::buildForm

public ThemeSettingsForm::buildForm(array $form, FormStateInterface $form_state, $theme = '') Parameters string $theme: The theme name. Overrides ConfigFormBase::buildForm File core/modules/system/src/Form/ThemeSettingsForm.php, line 101 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code public function buildForm(array $form, FormStateInterface $form_state, $theme = '') { $form = parent::buildForm($form, $for