ModerationStateInterface::isPublishedState

public ModerationStateInterface::isPublishedState() Determines if content updated to this state should be published. Return value bool TRUE if content updated to this state should be published. File core/modules/content_moderation/src/ModerationStateInterface.php, line 18 Class ModerationStateInterface Provides an interface for defining Moderation state entities. Namespace Drupal\content_moderation Code public function isPublishedState();

ModerationStateInterface::isDefaultRevisionState

public ModerationStateInterface::isDefaultRevisionState() Determines if content updated to this state should be the default revision. Return value bool TRUE if content in this state should be the default revision. File core/modules/content_moderation/src/ModerationStateInterface.php, line 26 Class ModerationStateInterface Provides an interface for defining Moderation state entities. Namespace Drupal\content_moderation Code public function isDefaultRevisionState();

ModerationStateInterface

Provides an interface for defining Moderation state entities. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\content_moderation\ModerationStateInterface File core/modules/content_moderation/src/ModerationStateInterface.php, line 10 Namespace Drupal\content_moderation Members Name Modifiers Type Description AccessibleInterface::

ModerationStateForm::save

public ModerationStateForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the o

ModerationStateForm::form

public ModerationStateForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/content_moderation/src/Form/ModerationStateForm.php, line 17 Class ModerationStateForm Class ModerationStateForm. Namespace Drupal\content_moderation\Form Code public function form(array $form, FormStateInterface $form_state)

ModerationStateForm

Class ModerationStateForm. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\content_moderation\Form\ModerationStateForm File core/modules/content_moderation/src/Form/ModerationStateForm.php, line 12 Namespace Drupal\con

ModerationStateDeleteForm::submitForm

public ModerationStateDeleteForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridde

ModerationStateDeleteForm::getQuestion

public ModerationStateDeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/content_moderation/src/Form/ModerationStateDeleteForm.php, line 17 Class ModerationStateDeleteForm Builds the form to delete Moderation state entities. Namespace Drupal\content_moderation\Form Code public function getQuestion() { return $this->t('Are you

ModerationStateDeleteForm::getConfirmText

public ModerationStateDeleteForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides EntityConfirmFormBase::getConfirmText File core/modules/content_moderation/src/Form/ModerationStateDeleteForm.php, line 31 Class ModerationStateDeleteForm Builds the form to delete Moderation state entities. Namespace Drupal\content_moderation\Form Code public function getConfirmText() { return $this->t('Delete');

ModerationStateDeleteForm::getCancelUrl

public ModerationStateDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/content_moderation/src/Form/ModerationStateDeleteForm.php, line 24 Class ModerationStateDeleteForm Builds the form to delete Moderation state entities. Namespace Drupal\content_moderation\Form Code public function getCancelUrl() { return new Url('entity.moderation_state.c