40 calls to ContentEntityBase::set()

BlockContent::setInfo in core/modules/block_content/src/Entity/BlockContent.php
Sets the block description.
BlockContent::setNonReusable in core/modules/block_content/src/Entity/BlockContent.php
Sets the block to be non-reusable.
BlockContent::setReusable in core/modules/block_content/src/Entity/BlockContent.php
Sets the block to be reusable.
Comment::preSave in core/modules/comment/src/Entity/Comment.php
Acts on an entity before the presave hook is invoked.
Comment::setAuthorName in core/modules/comment/src/Entity/Comment.php
Sets the name of the author of the comment.
Comment::setCreatedTime in core/modules/comment/src/Entity/Comment.php
Sets the creation date of the comment.
Comment::setFieldName in core/modules/comment/src/Entity/Comment.php
Sets the field ID for which this comment is attached.
Comment::setHomepage in core/modules/comment/src/Entity/Comment.php
Sets the comment author's home page address.
Comment::setHostname in core/modules/comment/src/Entity/Comment.php
Sets the hostname of the author of the comment.
Comment::setSubject in core/modules/comment/src/Entity/Comment.php
Sets the subject of the comment.
Comment::setThread in core/modules/comment/src/Entity/Comment.php
Sets the alphadecimal representation of the comment's place in a thread.
ContentEntityBase::setNewRevision in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::setRevisionTranslationAffected in core/lib/Drupal/Core/Entity/ContentEntityBase.php
EntityTest::setName in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Sets the name.
EntityTest::setOwner in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Sets the entity owner's user entity.
EntityTest::setOwnerId in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Sets the entity owner's user ID.
EntityTestWithRevisionLog::setName in core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestWithRevisionLog.php
Sets the name.
Media::setCreatedTime in core/modules/media/src/Entity/Media.php
Sets the media item creation timestamp.
Media::setName in core/modules/media/src/Entity/Media.php
Sets the media item name.
MenuLinkContent::setRequiresRediscovery in core/modules/menu_link_content/src/Entity/MenuLinkContent.php
Flags a link as requiring rediscovery.
Message::setCopySender in core/modules/contact/src/Entity/Message.php
Sets if the sender should receive a copy of this email or not.
Message::setMessage in core/modules/contact/src/Entity/Message.php
Sets the email message to send.
Message::setSenderMail in core/modules/contact/src/Entity/Message.php
Sets the email address of the sender.
Message::setSenderName in core/modules/contact/src/Entity/Message.php
Sets the name of the message sender.
Message::setSubject in core/modules/contact/src/Entity/Message.php
Sets the subject for the email.
Node::setCreatedTime in core/modules/node/src/Entity/Node.php
Sets the node creation timestamp.
Node::setPromoted in core/modules/node/src/Entity/Node.php
Sets the node promoted status.
Node::setSticky in core/modules/node/src/Entity/Node.php
Sets the node sticky status.
Node::setTitle in core/modules/node/src/Entity/Node.php
Sets the node title.
PathAlias::setAlias in core/modules/path_alias/src/Entity/PathAlias.php
Sets the alias for this path.
PathAlias::setPath in core/modules/path_alias/src/Entity/PathAlias.php
Sets the source path of the alias.
Shortcut::setTitle in core/modules/shortcut/src/Entity/Shortcut.php
Sets the title of this shortcut.
Shortcut::setWeight in core/modules/shortcut/src/Entity/Shortcut.php
Sets the weight among shortcuts with the same depth.
Term::setDescription in core/modules/taxonomy/src/Entity/Term.php
Sets the term description.
Term::setName in core/modules/taxonomy/src/Entity/Term.php
Sets the term name.
Term::setWeight in core/modules/taxonomy/src/Entity/Term.php
Sets the term weight.
User::addRole in core/modules/user/src/Entity/User.php
Add a role to a user.
User::removeRole in core/modules/user/src/Entity/User.php
Remove a role from a user.
User::setUsername in core/modules/user/src/Entity/User.php
Sets the username of this account.
Workspace::setCreatedTime in core/modules/workspaces/src/Entity/Workspace.php
Sets the workspace creation timestamp.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.