NodeForm::submitForm

public NodeForm::submitForm(array &$form, FormStateInterface $form_state) Updates the node object by processing the submitted values. This function can be called by a "Next" button of a wizard to update the form state's entity with the current step's values before proceeding to the next step. Overrides ContentEntityForm::submitForm File core/modules/node/src/NodeForm.php, line 315 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code public function submi

NodeForm::save

public NodeForm::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 operation pe

NodeForm::preview

public NodeForm::preview(array $form, FormStateInterface $form_state) Form submission handler for the 'preview' action. Parameters $form: An associative array containing the structure of the form. $form_state: The current state of the form. File core/modules/node/src/NodeForm.php, line 340 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code public function preview(array $form, FormStateInterface $form_state) { $store = $this->tempStoreFactory->get('

NodeForm::prepareEntity

protected NodeForm::prepareEntity() Prepares the entity object before the form is built first. Overrides EntityForm::prepareEntity File core/modules/node/src/NodeForm.php, line 54 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code protected function prepareEntity() { /** @var \Drupal\node\NodeInterface $node */ $node = $this->entity; if (!$node->isNew()) { // Remove the revision log message from the original node entity. $node->revis

NodeForm::form

public NodeForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/node/src/NodeForm.php, line 67 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code public function form(array $form, FormStateInterface $form_state) { // Try to restore from temp store, this must be d

NodeForm::create

public static NodeForm::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: The service contain

NodeForm::actions

protected NodeForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/node/src/NodeForm.php, line 232 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code protected function actions(array $form, FormStateInterface $form_state) { $element = parent::acti

NodeForm::$tempStoreFactory

The tempstore factory. Type: \Drupal\user\PrivateTempStoreFactory File core/modules/node/src/NodeForm.php, line 21 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code protected $tempStoreFactory;

NodeForm::$hasBeenPreviewed

Whether this node has been previewed or not. File core/modules/node/src/NodeForm.php, line 26 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code protected $hasBeenPreviewed = FALSE;

NodeForm

Form handler for the node edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\node\NodeForm File core/modules/node/src/NodeForm.php,