ModerationStateTransitionInterface::getWeight

public ModerationStateTransitionInterface::getWeight() Gets the weight for the given transition. Return value int The weight of this transition. File core/modules/content_moderation/src/ModerationStateTransitionInterface.php, line 34 Class ModerationStateTransitionInterface Provides an interface for defining Moderation state transition entities. Namespace Drupal\content_moderation Code public function getWeight();

ModerationStateTransitionInterface::getToState

public ModerationStateTransitionInterface::getToState() Gets the to state for the given transition. Return value string The moderation state ID for the to state. File core/modules/content_moderation/src/ModerationStateTransitionInterface.php, line 26 Class ModerationStateTransitionInterface Provides an interface for defining Moderation state transition entities. Namespace Drupal\content_moderation Code public function getToState();

ModerationStateTransitionInterface::getFromState

public ModerationStateTransitionInterface::getFromState() Gets the from state for the given transition. Return value string The moderation state ID for the from state. File core/modules/content_moderation/src/ModerationStateTransitionInterface.php, line 18 Class ModerationStateTransitionInterface Provides an interface for defining Moderation state transition entities. Namespace Drupal\content_moderation Code public function getFromState();

ModerationStateTransitionInterface

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

ModerationStateTransitionForm::__construct

public ModerationStateTransitionForm::__construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory) Constructs a new ModerationStateTransitionForm. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory. File core/modules/content_moderation/src/Form/ModerationStateTransitionForm.php, line 40 Class ModerationStateTransitionForm Class

ModerationStateTransitionForm::save

public ModerationStateTransitionForm::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, dependin

ModerationStateTransitionForm::form

public ModerationStateTransitionForm::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/ModerationStateTransitionForm.php, line 55 Class ModerationStateTransitionForm Class ModerationStateTransitionForm. Namespace Drupal\content_moderation\Form Code public function form(array

ModerationStateTransitionForm::create

public static ModerationStateTransitionForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container

ModerationStateTransitionForm::$queryFactory

The entity query factory. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/content_moderation/src/Form/ModerationStateTransitionForm.php, line 30 Class ModerationStateTransitionForm Class ModerationStateTransitionForm. Namespace Drupal\content_moderation\Form Code protected $queryFactory;

ModerationStateTransitionForm::$entityTypeManager

The entity type manager. Type: \Drupal\Core\Entity\EntityTypeManagerInterface Overrides EntityForm::$entityTypeManager File core/modules/content_moderation/src/Form/ModerationStateTransitionForm.php, line 23 Class ModerationStateTransitionForm Class ModerationStateTransitionForm. Namespace Drupal\content_moderation\Form Code protected $entityTypeManager;