CommentStorage::getDisplayOrdinal

public CommentStorage::getDisplayOrdinal(CommentInterface $comment, $comment_mode, $divisor = 1) Gets the display ordinal or page number for a comment. Parameters \Drupal\comment\CommentInterface $comment: The comment to use as a reference point. int $comment_mode: The comment display mode: CommentManagerInterface::COMMENT_MODE_FLAT or CommentManagerInterface::COMMENT_MODE_THREADED. int $divisor: Defaults to 1, which returns the display ordinal for a comment. If the number of comments per page

Tables::addField

public Tables::addField($field, $type, $langcode) Adds a field to a database query. Parameters string $field: If it doesn't contain a dot, then an entity base field name. If it contains a dot, then either field name dot field column or field name dot delta dot field column. Delta can be a numeric value or a "%delta" for any value. string $type: Join type, can either be INNER or LEFT. string $langcode: The language code the field values are to be queried in. Return value string The return valu

Schema::dropIndex

public Schema::dropIndex($table, $name) Drop an index. Parameters $table: The table to be altered. $name: The name of the index. Return value TRUE if the index was successfully dropped, FALSE if there was no index by that name to begin with. Overrides Schema::dropIndex File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 623 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqlite Code public function dropIndex($tab

MatcherDumper::$state

The state. Type: \Drupal\Core\State\StateInterface File core/lib/Drupal/Core/Routing/MatcherDumper.php, line 37 Class MatcherDumper Dumps Route information to a database table. Namespace Drupal\Core\Routing Code protected $state;

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

ActionFormBase::submitForm

public ActionFormBase::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless th

PathProcessorLanguage::initProcessors

protected PathProcessorLanguage::initProcessors($scope) Initializes the local cache for language path processors. Parameters string $scope: The scope of the processors: "inbound" or "outbound". File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 132 Class PathProcessorLanguage Processes the inbound path using path alias lookups. Namespace Drupal\language\HttpKernel Code protected function initProcessors($scope) { $interface = '\Drupal\Core\PathProcessor\\' . Un

Editor

Defines an Editor annotation object. Plugin Namespace: Plugin\Editor Text editor plugin implementations need to define a plugin definition array through annotation. These definition arrays may be altered through hook_editor_info_alter(). The definition includes the following keys: id: The unique, system-wide identifier of the text editor. Typically named the same as the editor library. label: The human-readable name of the text editor, translated. supports_content_filtering: Whether the edit

WidgetInterface::massageFormValues

public WidgetInterface::massageFormValues(array $values, array $form, FormStateInterface $form_state) Massages the form values into the format expected for field values. Parameters array $values: The submitted form values produced by the widget. If the widget does not manage multiple values itself, the array holds the values generated by the multiple copies of the $element generated by the formElement() method, keyed by delta. If the widget manages multiple values, the array holds the values o

EntityFormMode

Defines the entity form mode configuration entity class. Form modes allow entity forms to be displayed differently depending on the context. For instance, the user entity form can be displayed with a set of fields on the 'profile' page (user edit page) and with a different set of fields (or settings) on the user registration page. Modules taking part in the display of the entity form (notably the Field API) can adjust their behavior depending on the requested form mode. An additional 'default'