protected function ContentEntityConflictHandler::isFormLevelSubmission in Conflict 8.2
Determines if the form level submission has been triggered.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
bool TRUE if the form has been submitted for final submission, FALSE otherwise.
2 calls to ContentEntityConflictHandler::isFormLevelSubmission()
- ContentEntityConflictHandler::entityFormEntityBuilder in src/
Entity/ ContentEntityConflictHandler.php - Entity builder method.
- ContentEntityConflictHandler::entityMainFormValidateLast in src/
Entity/ ContentEntityConflictHandler.php - Form level validation handler running after all others.
File
- src/
Entity/ ContentEntityConflictHandler.php, line 651
Class
Namespace
Drupal\conflict\EntityCode
protected function isFormLevelSubmission(FormStateInterface $form_state) {
// @todo find a safer way of determining if this is a form level submission.
return in_array('::submitForm', $form_state
->getSubmitHandlers());
}