ModerationHandlerInterface::enforceRevisionsBundleFormAlter

public ModerationHandlerInterface::enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters bundle forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. See also hook_form_alter() File core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php, line 71

ModerationHandlerInterface

Defines operations that need to vary by entity type. Much of the logic contained in this handler is an indication of flaws in the Entity API that are insufficiently standardized between entity types. Hopefully over time functionality can be removed from this interface. Hierarchy interface \Drupal\content_moderation\Entity\Handler\ModerationHandlerInterface File core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php, line 16 Namespace Drupal\content_moderation\E

ModerationHandler::onPresave

public ModerationHandler::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. Overrides ModerationHandlerInterface::onPresave File core/modules/content_modera

ModerationHandler::onBundleModerationConfigurationFormSubmit

public ModerationHandler::onBundleModerationConfigurationFormSubmit(ConfigEntityInterface $bundle) Operates on the bundle definition that has been marked as moderated. Note: The values on the EntityModerationForm itself are already saved so do not need to be saved here. If any changes are made to the bundle object here it is this method's responsibility to call save() on it. The most common use case is to force revisions on for this bundle if moderation is enabled. That, sadly, does not have a

ModerationHandler::enforceRevisionsEntityFormAlter

public ModerationHandler::enforceRevisionsEntityFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters entity forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandlerInterface::enforceRevisionsEntityFormAlter See also hook_form_alter() File core/modules/content_moderation/s

ModerationHandler::enforceRevisionsBundleFormAlter

public ModerationHandler::enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters bundle forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandlerInterface::enforceRevisionsBundleFormAlter See also hook_form_alter() File core/modules/content_moderation/s

ModerationHandler::createInstance

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

ModerationHandler

Common customizations for most/all entities. This class is intended primarily as a base class. Hierarchy class \Drupal\content_moderation\Entity\Handler\ModerationHandler implements ModerationHandlerInterface, EntityHandlerInterface uses StringTranslationTrait File core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php, line 18 Namespace Drupal\content_moderation\Entity\Handler Members Name Modifiers Type Description ModerationHandler::createInstance public

ModalRenderer::renderResponse

public ModalRenderer::renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match) Renders the main content render array into a response. Parameters array $main_content: The render array representing the main content. \Symfony\Component\HttpFoundation\Request $request: The request object, for context. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context. Return value \Symfony\Component\HttpFoundation\Response The Response in the format

ModalRenderer

Default main content renderer for modal dialog requests. Hierarchy class \Drupal\Core\Render\MainContent\DialogRenderer implements MainContentRendererInterfaceclass \Drupal\Core\Render\MainContent\ModalRenderer File core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php, line 13 Namespace Drupal\Core\Render\MainContent Members Name Modifiers Type Description DialogRenderer::$titleResolver protected property The title resolver. DialogRenderer::determineTargetSelecto