NODE_PUBLISHED

Denotes that the node is published. File core/modules/node/node.module, line 40 The core module that allows content to be submitted to the site. Code const NODE_PUBLISHED = 1;

comment_install

comment_install() Implements hook_install(). File core/modules/comment/comment.install, line 30 Install, update and uninstall functions for the Comment module. Code function comment_install() { // By default, maintain entity statistics for comments. // @see \Drupal\comment\CommentStatisticsInterface \Drupal::state()->set('comment.maintain_entity_statistics', TRUE); }

UpdateRegistry::getAvailableUpdateFunctions

protected UpdateRegistry::getAvailableUpdateFunctions() Gets all available update functions. Return value callable[] A list of update functions. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 95 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected function getAvailableUpdateFunctions() { $regexp = '/^(?<module>.+)_' . $this->updateType . '_(?<name>.+)$/'; $functions = get_defined_functions();

QueryAggregate::prepare

public QueryAggregate::prepare() Prepares the basic query with proper metadata/tags and base fields. Return value \Drupal\Core\Entity\Query\Sql\Query Returns the called object. Throws \Drupal\Core\Entity\Query\QueryException Thrown if the base table does not exist. Overrides Query::prepare File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 39 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code public function

EntityTypeListener::$eventDispatcher

The event dispatcher. Type: \Symfony\Component\EventDispatcher\EventDispatcherInterface File core/lib/Drupal/Core/Entity/EntityTypeListener.php, line 33 Class EntityTypeListener Reacts to entity type CRUD on behalf of the Entity system. Namespace Drupal\Core\Entity Code protected $eventDispatcher;

LanguageServiceProvider::CONFIG_PREFIX

File core/modules/language/src/LanguageServiceProvider.php, line 16 Class LanguageServiceProvider Overrides the language_manager service to point to language's module one. Namespace Drupal\language Code const CONFIG_PREFIX = 'language.entity.';

CommentLinkBuilder::__construct

public CommentLinkBuilder::__construct(AccountInterface $current_user, CommentManagerInterface $comment_manager, ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, EntityManagerInterface $entity_manager) Constructs a new CommentLinkBuilder object. Parameters \Drupal\Core\Session\AccountInterface $current_user: Current user. \Drupal\comment\CommentManagerInterface $comment_manager: Comment manager service. \Drupal\Core\Extension\ModuleHandlerInterface $module_hand

install_state_defaults

install_state_defaults() Returns an array of default settings for the global installation state. The installation state is initialized with these settings at the beginning of each page request. They may evolve during the page request, but they are initialized again once the next request begins. Non-interactive Drupal installations can override some of these default settings by passing in an array to the installation script, most notably 'parameters' (which contains one-time parameters such as '

ModerationStateTransitionDeleteForm::getCancelUrl

public ModerationStateTransitionDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/content_moderation/src/Form/ModerationStateTransitionDeleteForm.php, line 24 Class ModerationStateTransitionDeleteForm Builds the form to delete Moderation state transition entities. Namespace Drupal\content_moderation\Form Code public function getCancelUrl() {

EntityInterface::id

public EntityInterface::id() Gets the identifier. Return value string|int|null The entity identifier, or NULL if the object does not yet have an identifier. File core/lib/Drupal/Core/Entity/EntityInterface.php, line 34 Class EntityInterface Defines a common interface for all entity objects. Namespace Drupal\Core\Entity Code public function id();