Number::intToAlphadecimal

public static Number::intToAlphadecimal($i = 0) Generates a sorting code from an integer. Consists of a leading character indicating length, followed by N digits with a numerical value in base 36 (alphadecimal). These codes can be sorted as strings without altering numerical order. It goes: 00, 01, 02, ..., 0y, 0z, 110, 111, ... , 1zy, 1zz, 2100, 2101, ..., 2zzy, 2zzz, 31000, 31001, ... Parameters int $i: The integer value to convert. Return value string The alpha decimal value. See also \Dr

RequestHelper

Provides some helper methods for dealing with the request. Hierarchy class \Drupal\Core\Routing\RequestHelper File core/lib/Drupal/Core/Routing/RequestHelper.php, line 10 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RequestHelper::isCleanUrl public static function Returns whether the request is using a clean URL.

ChainResponsePolicy::$rules

A list of policy rules to apply when this policy is checked. Type: \Drupal\Core\PageCache\ResponsePolicyInterface[] File core/lib/Drupal/Core/PageCache/ChainResponsePolicy.php, line 27 Class ChainResponsePolicy Implements a compound response policy. Namespace Drupal\Core\PageCache Code protected $rules = [];

MenuLinkManagerInterface::addDefinition

public MenuLinkManagerInterface::addDefinition($id, array $definition) Adds a new menu link definition to the menu tree storage. Use this function when you know there is no entry in the tree. This is used for plugins not found through discovery to add new definitions. Parameters string $id: The plugin ID for the new menu link definition that is being added. array $definition: The values of the link definition. Return value \Drupal\Core\Menu\MenuLinkInterface A plugin instance created using th

StringBase::$version

The string version. Type: string File core/modules/locale/src/StringBase.php, line 45 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $version;

PhpTransliteration::lookupReplacement

protected PhpTransliteration::lookupReplacement($code, $unknown_character = '?') Look up the generic replacement for a UTF-8 character code. Parameters $code: The UTF-8 character code. string $unknown_character: (optional) The character to substitute for characters without entries in the replacement tables. Return value string US-ASCII replacement characters. If it has a mapping, it is returned; otherwise, $unknown_character is returned. The replacement can contain multiple characters. File c

ViewEditForm::save

public ViewEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the operatio

Node

Defines the node entity class. Plugin annotation @ContentEntityType( id = "node", label = @Translation("Content"), label_singular = @Translation("content item"), label_plural = @Translation("content items"), label_count = @PluralTranslation( singular = "@count content item", plural = "@count content items" ), bundle_label = @Translation("Content type"), handlers = { "storage" = "Drupal\node\NodeStorage", "storage_schema" = "Drupal\node\NodeStorageSchema", "vi

ChainResponsePolicy::addPolicy

public ChainResponsePolicy::addPolicy(ResponsePolicyInterface $policy) Add a policy to the list of policy rules. Parameters \Drupal\Core\PageCache\ResponsePolicyInterface $policy: The request policy rule to add. Return value $this Overrides ChainResponsePolicyInterface::addPolicy File core/lib/Drupal/Core/PageCache/ChainResponsePolicy.php, line 47 Class ChainResponsePolicy Implements a compound response policy. Namespace Drupal\Core\PageCache Code public function addPolicy(ResponsePo

SystemConfigSubscriber::$routerBuilder

The router builder. Type: \Drupal\Core\Routing\RouteBuilderInterface File core/modules/system/src/SystemConfigSubscriber.php, line 23 Class SystemConfigSubscriber System Config subscriber. Namespace Drupal\system Code protected $routerBuilder;