BlockContent::setRevisionLogMessage

public BlockContent::setRevisionLogMessage($revision_log_message) Sets the entity revision log message. Parameters string $revision_log_message: The revision log message. Return value $this Overrides RevisionLogInterface::setRevisionLogMessage File core/modules/block_content/src/Entity/BlockContent.php, line 288 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function setRevisionLogMessage($revision_log_message) { $this-&g

BlockContent::setRevisionLog

public BlockContent::setRevisionLog($revision_log) Sets the block revision log message. Parameters string $revision_log: The revision log message. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. Overrides BlockContentInterface::setRevisionLog Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead. File core/modules/block_content/src/Entity/Block

BlockContent::setRevisionCreationTime

public BlockContent::setRevisionCreationTime($timestamp) Sets the entity revision creation timestamp. Parameters int $timestamp: The UNIX timestamp of when this revision was created. Return value $this Overrides RevisionLogInterface::setRevisionCreationTime File core/modules/block_content/src/Entity/BlockContent.php, line 246 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function setRevisionCreationTime($timestamp) { $th

BlockContent::setInfo

public BlockContent::setInfo($info) Sets the block description. Parameters string $info: The block description. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. Overrides BlockContentInterface::setInfo File core/modules/block_content/src/Entity/BlockContent.php, line 224 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function setInfo($info) { $this->set('info',

BlockContent::preSaveRevision

public BlockContent::preSaveRevision(EntityStorageInterface $storage, \stdClass $record) Acts on a revision before it gets saved. Parameters EntityStorageInterface $storage: The entity storage object. \stdClass $record: The revision object. Overrides ContentEntityBase::preSaveRevision File core/modules/block_content/src/Entity/BlockContent.php, line 129 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function preSaveRevision(

BlockContent::postSave

public BlockContent::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bo

BlockContent::postDelete

public static BlockContent::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/modules/block_content/src/Entity/BlockContent.php, line 114 Class Block

BlockContent::getTheme

public BlockContent::getTheme() Gets the theme value. When creating a new block content block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the block content add form is shown. Return value string The theme name. Overrides BlockContentInterface::getTheme File core/modules/block_content/src/Entity/BlockContent.php, line 99 Class BlockContent Defines the custom block entity class. Namespac

BlockContent::getRevisionUserId

public BlockContent::getRevisionUserId() Gets the entity revision author ID. Return value int The user ID. Overrides RevisionLogInterface::getRevisionUserId File core/modules/block_content/src/Entity/BlockContent.php, line 266 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function getRevisionUserId() { return $this->get('revision_user')->entity->id(); }

BlockContent::getRevisionUser

public BlockContent::getRevisionUser() Gets the entity revision author. Return value \Drupal\user\UserInterface The user entity for the revision author. Overrides RevisionLogInterface::getRevisionUser File core/modules/block_content/src/Entity/BlockContent.php, line 254 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function getRevisionUser() { return $this->get('revision_user')->entity; }