NodeTypeForm::save

public NodeTypeForm::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 operatio

NodeTypeForm::form

public NodeTypeForm::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/node/src/NodeTypeForm.php, line 46 Class NodeTypeForm Form handler for node type forms. Namespace Drupal\node Code public function form(array $form, FormStateInterface $form_state) { $form = parent::form($form, $form_state); $ty

NodeTypeForm::create

public static NodeTypeForm::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 con

NodeTypeForm::actions

protected NodeTypeForm::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/NodeTypeForm.php, line 192 Class NodeTypeForm Form handler for node type forms. Namespace Drupal\node Code protected function actions(array $form, FormStateInterface $form_state) { $actions = pare

NodeTypeForm::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface Overrides EntityForm::$entityManager File core/modules/node/src/NodeTypeForm.php, line 22 Class NodeTypeForm Form handler for node type forms. Namespace Drupal\node Code protected $entityManager;

NodeTypeForm

Form handler for node type 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\BundleEntityFormBaseclass \Drupal\node\NodeTypeForm File core/modules/node/src/NodeTypeForm.php, line 15 Namespace Drupal\n

NodeTypeDeleteConfirm::__construct

public NodeTypeDeleteConfirm::__construct(QueryFactory $query_factory) Constructs a new NodeTypeDeleteConfirm object. Parameters \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query object. File core/modules/node/src/Form/NodeTypeDeleteConfirm.php, line 28 Class NodeTypeDeleteConfirm Provides a form for content type deletion. Namespace Drupal\node\Form Code public function __construct(QueryFactory $query_factory) { $this->queryFactory = $query_factory; }

NodeTypeDeleteConfirm::create

public static NodeTypeDeleteConfirm::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 se

NodeTypeDeleteConfirm::buildForm

public NodeTypeDeleteConfirm::buildForm(array $form, FormStateInterface $form_state) Form constructor. 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 array The form structure. Overrides EntityDeleteForm::buildForm File core/modules/node/src/Form/NodeTypeDeleteConfirm.php, line 44 Class NodeTypeDeleteConfirm Provides a form for content type deletion. Namespac

NodeTypeDeleteConfirm::$queryFactory

The query factory to create entity queries. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/node/src/Form/NodeTypeDeleteConfirm.php, line 20 Class NodeTypeDeleteConfirm Provides a form for content type deletion. Namespace Drupal\node\Form Code protected $queryFactory;