Button

Provides an action button form element. When the button is pressed, the form will be submitted to Drupal, where it is validated and rebuilt. The submit handler is not invoked. Properties: #limit_validation_errors: An array of form element keys that will block form submission when validation for these elements or any child elements fails. Specify an empty array to suppress all form validation errors. #value: The text to be shown on the button. Usage Example: $form['actions']['preview'] = arr

BundleModerationConfigurationForm::__construct

public BundleModerationConfigurationForm::__construct(EntityTypeManagerInterface $entity_type_manager) File core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php, line 28 Class BundleModerationConfigurationForm Form for configuring moderation usage on a given entity bundle. Namespace Drupal\content_moderation\Form Code public function __construct(EntityTypeManagerInterface $entity_type_manager) { $this->entityTypeManager = $entity_type_manager; }

BundleModerationConfigurationForm::validateForm

public BundleModerationConfigurationForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php, line 167 Class BundleModerationConfigurationForm Form for configuring moderation

BundleModerationConfigurationForm::submitForm

public BundleModerationConfigurationForm::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 o

BundleModerationConfigurationForm::getBaseFormId

public BundleModerationConfigurationForm::getBaseFormId() Blank out the base form ID so that form alters that use the base form ID to target both add and edit forms don't pick up this form. Overrides EntityForm::getBaseFormId File core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php, line 45 Class BundleModerationConfigurationForm Form for configuring moderation usage on a given entity bundle. Namespace Drupal\content_moderation\Form Code public function getB

BundleModerationConfigurationForm::formBuilderCallback

public BundleModerationConfigurationForm::formBuilderCallback($entity_type_id, EntityInterface $bundle, &$form, FormStateInterface $form_state) Form builder callback. @todo This should be folded into the form method. Parameters string $entity_type_id: The entity type identifier. \Drupal\Core\Entity\EntityInterface $bundle: The bundle entity updated with the submitted values. array $form: The complete form array. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the for

BundleModerationConfigurationForm::form

public BundleModerationConfigurationForm::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/BundleModerationConfigurationForm.php, line 52 Class BundleModerationConfigurationForm Form for configuring moderation usage on a given entity bundle. Namespace Drupal\content_moderatio

BundleModerationConfigurationForm::create

public static BundleModerationConfigurationForm::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 $conta

BundleModerationConfigurationForm::$entityTypeManager

Entity Type Manager service. Type: \Drupal\Core\Entity\EntityTypeManagerInterface Overrides EntityForm::$entityTypeManager File core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php, line 23 Class BundleModerationConfigurationForm Form for configuring moderation usage on a given entity bundle. Namespace Drupal\content_moderation\Form Code protected $entityTypeManager;

BundleModerationConfigurationForm

Form for configuring moderation usage on a given entity bundle. 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\BundleModerationConfigurationForm File core/modules/content_moderation/src/Form/Bundle