tablesort_header

tablesort_header(&$cell_content, array &$cell_attributes, array $header, array $ts) Formats a column header. If the cell in question is the column header for the current sort criterion, it gets special formatting. All possible sort criteria become links. Parameters string $cell_content: The cell content to format. Passed by reference. array $cell_attributes: The cell attributes. Passed by reference. array $header: An array of column headers in the format described in '#type' => 'tab

comment_field_config_update

comment_field_config_update(FieldConfigInterface $field) Implements hook_ENTITY_TYPE_update() for 'field_config'. File core/modules/comment/comment.module, line 160 Enables users to comment on published content. Code function comment_field_config_update(FieldConfigInterface $field) { if ($field->getType() == 'comment') { // Comment field settings also affects the rendering of *comment* entities, // not only the *commented* entities. \Drupal::entityManager()->getViewBuilder

NODE_NOT_PROMOTED

Denotes that the node is not promoted to the front page. File core/modules/node/node.module, line 45 The core module that allows content to be submitted to the site. Code const NODE_NOT_PROMOTED = 0;

ConfigDependencyManager

Provides a class to discover configuration entity dependencies. Configuration entities can depend on modules, themes and other configuration entities. The dependency system is used during configuration installation, uninstallation, and synchronization to ensure that configuration entities are handled in the correct order. For example, node types are created before their fields, and both are created before the view display configuration. The configuration dependency value is structured like this

EntityDeleteForm::buildForm

public EntityDeleteForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides EntityConfirmFormBase::buildForm File core/lib/Drupal/Core/Entity/EntityDeleteForm.php, line 20 Class EntityDeleteForm Provides a generic base class for an entity deletion form. N

AdminRouteSubscriber::getSubscribedEvents

public static AdminRouteSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority))

EntityInterface::enforceIsNew

public EntityInterface::enforceIsNew($value = TRUE) Enforces an entity to be new. Allows migrations to create entities with pre-defined IDs by forcing the entity to be new before saving. Parameters bool $value: (optional) Whether the entity should be forced to be new. Defaults to TRUE. Return value $this See also \Drupal\Core\Entity\EntityInterface::isNew() File core/lib/Drupal/Core/Entity/EntityInterface.php, line 71 Class EntityInterface Defines a common interface for all entity objec

AccessDeniedSubscriber::onException

public AccessDeniedSubscriber::onException(GetResponseForExceptionEvent $event) Redirects users when access is denied. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 52 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Code public function onException(GetResponseForExceptionEvent $event) { $exce

PathProcessorAlias::processInbound

public PathProcessorAlias::processInbound($path, Request $request) Processes the inbound path. Parameters string $path: The path to process, with a leading slash. \Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the current request. Return value string The processed path. Overrides InboundPathProcessorInterface::processInbound File core/lib/Drupal/Core/PathProcessor/PathProcessorAlias.php, line 34 Class PathProcessorAlias Processes the inbound path

CacheContextInterface::getContext

public CacheContextInterface::getContext() Returns the string representation of the cache context. A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method. Return value string The string representation of the cache context. File core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php, line 27 Class CacheContextInterface Provides an interface for defining a cache context service. Namespace Drupal\Core\C