LOCALE_JS_STRING

Regular expression pattern used to localize JavaScript strings. File core/modules/locale/locale.module, line 31 Enables the translation of the user interface to languages other than English. Code const LOCALE_JS_STRING = '(?:(?:\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")(?:\s*\+\s*)?)+';

AccessResultNeutral

Value object indicating a neutral access result, with cacheability metadata. Hierarchy class \Drupal\Core\Access\AccessResult implements AccessResultInterface, RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTraitclass \Drupal\Core\Access\AccessResultNeutral File core/lib/Drupal/Core/Access/AccessResultNeutral.php, line 8 Namespace Drupal\Core\Access Members Name Modifiers Type Description AccessResult::allowed public static function Creates an Ac

Token

Drupal placeholder/token replacement system. API functions for replacing placeholders in text with meaningful values. For example: When configuring automated emails, an administrator enters standard text for the email. Variables like the title of a node and the date the email was sent can be entered as placeholders like [node:title] and [date:short]. When a Drupal module prepares to send the email, it can call the Token::replace() function, passing in the text. The token system will scan the te

ModuleHandler::parseDependency

public static ModuleHandler::parseDependency($dependency) Parses a dependency for comparison by drupal_check_incompatibility(). Parameters $dependency: A dependency string, which specifies a module dependency, and optionally the project it comes from and versions that are supported. Supported formats include: 'module' 'project:module' 'project:module (>=version, version)' Return value An associative array with three keys: 'name' includes the name of the thing to depend on (e.g. 'foo'). '

NodeController::__construct

public NodeController::__construct(DateFormatterInterface $date_formatter, RendererInterface $renderer) Constructs a NodeController object. Parameters \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service. \Drupal\Core\Render\RendererInterface $renderer: The renderer service. File core/modules/node/src/Controller/NodeController.php, line 43 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function _

DbLog::log

public DbLog::log($level, $message, array $context = array()) Logs with an arbitrary level. Parameters mixed $level: string $message: array $context: Return value null Overrides RfcLoggerTrait::log File core/modules/dblog/src/Logger/DbLog.php, line 56 Class DbLog Logs events in the watchdog database table. Namespace Drupal\dblog\Logger Code public function log($level, $message, array $context = array()) { // Remove any backtraces since they may contain an unserializable variable.

StaticMenuLinkOverrides::deleteOverride

public StaticMenuLinkOverrides::deleteOverride($id) Deletes any overrides to the definition of a static (YAML-defined) link. Parameters string $id: A menu link plugin ID. Overrides StaticMenuLinkOverridesInterface::deleteOverride File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 101 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function deleteOverride($id) { return $this-&g

View::$module

The module implementing this view. Type: string File core/modules/views/src/Entity/View.php, line 115 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $module = 'views';

FormState::$redirect

Used to redirect the form on submission. This property is uncacheable. Type: \Drupal\Core\Url|\Symfony\Component\HttpFoundation\RedirectResponse|null See also self::getRedirect() File core/lib/Drupal/Core/Form/FormState.php, line 139 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $redirect;

forum_comment_update

forum_comment_update(CommentInterface $comment) Implements hook_ENTITY_TYPE_update() for comment entities. File core/modules/forum/forum.module, line 261 Provides discussion forums. Code function forum_comment_update(CommentInterface $comment) { if ($comment->getCommentedEntityTypeId() == 'node') { \Drupal::service('forum.index_storage')->updateIndex($comment->getCommentedEntity()); } }