Comment::getAuthorEmail

public Comment::getAuthorEmail() Returns the comment author's email address. For anonymous authors, this is the value as typed in the comment form. Return value string The email address of the author of the comment. Overrides CommentInterface::getAuthorEmail File core/modules/comment/src/Entity/Comment.php, line 412 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function getAuthorEmail() { $mail = $this->get('mail')->value; if ($

Comment::bundleFieldDefinitions

public static Comment::bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) Provides field definitions for a specific bundle. This function can return definitions both for bundle fields (fields that are not defined in $base_field_definitions, and therefore might not exist on some bundles) as well as bundle-specific overrides of base fields (fields that are defined in $base_field_definitions, and therefore exist for all bundles). However, bundle-specif

Comment::baseFieldDefinitions

public static Comment::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that

Comment::$threadLock

The thread for which a lock was acquired. File core/modules/comment/src/Entity/Comment.php, line 67 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code protected $threadLock = '';

comment.views.inc

Provide views data for comment.module. File core/modules/comment/comment.views.inc Functions Name Description comment_views_data_alter Implements hook_views_data_alter().

comment.tokens.inc

Builds placeholder replacement tokens for comment-related data. File core/modules/comment/comment.tokens.inc Functions Name Description comment_tokens Implements hook_tokens(). comment_token_info Implements hook_token_info().

comment.module

Enables users to comment on published content. When installed, the Comment module creates a field that facilitates a discussion board for each Drupal entity to which a comment field is attached. Users can post comments to discuss a forum topic, story, collaborative book page, user etc. File core/modules/comment/comment.module Functions Name Description comment_cron Implements hook_cron(). comment_entity_extra_field_info Implements hook_entity_extra_field_info(). comment_entity_i

comment.install

Install, update and uninstall functions for the Comment module. File core/modules/comment/comment.install Functions Name Description comment_install Implements hook_install(). comment_schema Implements hook_schema(). comment_uninstall Implements hook_uninstall(). comment_update_8001 Clear caches to fix Comment entity list builder and operations Views field. comment_update_8002 Clear caches to fix Comment Views context filter. comment_update_8200 Add the 'view_mode'

comment.html.twig

Default theme implementation for comments. Available variables: author: Comment author. Can be a link or plain text. content: The content-related items for the comment display. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use the following code to temporarily suppress the printing of a given child element: {{ content|without('field_example') }} created: Formatted date and time for when the comment was created. Preprocess functions can re

Comment

Defines the comment entity class. Plugin annotation @ContentEntityType( id = "comment", label = @Translation("Comment"), bundle_label = @Translation("Comment type"), handlers = { "storage" = "Drupal\comment\CommentStorage", "storage_schema" = "Drupal\comment\CommentStorageSchema", "access" = "Drupal\comment\CommentAccessControlHandler", "list_builder" = "Drupal\Core\Entity\EntityListBuilder", "view_builder" = "Drupal\comment\CommentViewBuilder", "views_data" = "D