ModerationHandlerInterface::onPresave

public ModerationHandlerInterface::onPresave(ContentEntityInterface $entity, $default_revision, $published_state)

Operates on moderated content entities preSave().

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to modify.

bool $default_revision: Whether the new revision should be made the default revision.

bool $published_state: Whether the state being transitioned to is a published state or not.

File

core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php, line 28

Class

ModerationHandlerInterface
Defines operations that need to vary by entity type.

Namespace

Drupal\content_moderation\Entity\Handler

Code

public function onPresave(ContentEntityInterface $entity, $default_revision, $published_state);
doc_Drupal
2016-10-29 09:28:32
Comments
Leave a Comment

Please login to continue.