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

Diff::lcs

public Diff::lcs() Compute the length of the Longest Common Subsequence (LCS). This is mostly for diagnostic purposed. Return value int The length of the LCS. File core/lib/Drupal/Component/Diff/Diff.php, line 80 Class Diff Class representing a 'diff' between two sequences of strings. @todo document @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function lcs() { $lcs = 0; foreach ($this->edits as $edit) { if ($edit->type == 'copy') { $lcs

views-ui-view-info.html.twig

Default theme implementation for basic administrative info about a View. Available variables: displays: List of displays. File core/modules/views_ui/templates/views-ui-view-info.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

ViewAjaxController::ajaxView

public ViewAjaxController::ajaxView(Request $request) Loads and renders a view via AJAX. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. Return value \Drupal\views\Ajax\ViewAjaxResponse The view response as ajax response. Throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException Thrown when the view was not found. File core/modules/views/src/Controller/ViewAjaxController.php, line 112 Class ViewAjaxController Defines a controller to

FilterFormatEditForm

Provides a form for adding a filter format. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\filter\FilterFormatFormBaseclass \Drupal\filter\FilterFormatEditForm File core/modules/filter/src/FilterFormatEditForm.php, line