CommentAdminOverview::$commentStorage

The comment storage. Type: \Drupal\comment\CommentStorageInterface File core/modules/comment/src/Form/CommentAdminOverview.php, line 32 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Form Code protected $commentStorage;

CommentAdminOverview

Provides the comments overview administration form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\comment\Form\CommentAdminOverview File core/modules/comment/src/Form/CommentAdminOverview.php, line 18 Namespace Drupal\comment\Form Members Name Modifiers Type Description Co

CommentAccessControlHandler::checkFieldAccess

protected CommentAccessControlHandler::checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) Default field access as determined by this access control handler. Parameters string $operation: The operation access should be checked for. Usually one of "view" or "edit". \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. \Drupal\Core\Session\AccountInterface $account: The user sessi

CommentAccessControlHandler::checkCreateAccess

protected CommentAccessControlHandler::checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) Performs create access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Session\AccountInterface $account: The user for which to check access. array $context: An array of key-value pairs to pass additional context when needed. string|null $entity_bundle: (optional) The bundle of the ent

CommentAccessControlHandler::checkAccess

protected CommentAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for

CommentAccessControlHandler

Defines the access control handler for the comment entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\comment\CommentAccessControlHandler See also \Drupal\comment\Entity\Comment File core/modules/comment/src/CommentAccessControlHandler.php, line 17 Namespace Drupal\comment Members Name Modifiers

Comment::setThread

public Comment::setThread($thread) Sets the alphadecimal representation of the comment's place in a thread. Parameters string $thread: The alphadecimal representation of the comment's place in a thread. Return value $this The class instance that this method is called on. Overrides CommentInterface::setThread File core/modules/comment/src/Entity/Comment.php, line 505 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setThread($thread)

Comment::setSubject

public Comment::setSubject($subject) Sets the subject of the comment. Parameters string $subject: The subject of the comment. Return value $this The class instance that this method is called on. Overrides CommentInterface::setSubject File core/modules/comment/src/Entity/Comment.php, line 386 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setSubject($subject) { $this->set('subject', $subject); return $this; }

Comment::setPublished

public Comment::setPublished($status) Sets the published status of the comment entity. Parameters bool $status: Set to TRUE to publish the comment, FALSE to unpublish. Return value \Drupal\comment\CommentInterface The class instance that this method is called on. Overrides CommentInterface::setPublished File core/modules/comment/src/Entity/Comment.php, line 487 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setPublished($status) {

Comment::setOwnerId

public Comment::setOwnerId($uid) Sets the entity owner's user ID. Parameters int $uid: The owner user id. Return value $this Overrides EntityOwnerInterface::setOwnerId File core/modules/comment/src/Entity/Comment.php, line 543 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setOwnerId($uid) { $this->set('uid', $uid); return $this; }