Drupal 8  8.0.2
MenuDeleteForm Class Reference
Inheritance diagram for MenuDeleteForm:

Public Member Functions

 __construct (MenuLinkManagerInterface $menu_link_manager, Connection $connection)
 
 getDescription ()
 
 submitForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from EntityDeleteForm
 buildForm (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from EntityConfirmFormBase
 getBaseFormId ()
 
 getDescription ()
 
 getConfirmText ()
 
 getCancelText ()
 
 getFormName ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
 delete (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from EntityForm
 setOperation ($operation)
 
 getBaseFormId ()
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 form (array $form, FormStateInterface $form_state)
 
 processForm ($element, FormStateInterface $form_state, $form)
 
 afterBuild (array $element, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
 buildEntity (array $form, FormStateInterface $form_state)
 
 getEntity ()
 
 setEntity (EntityInterface $entity)
 
 getEntityFromRouteMatch (RouteMatchInterface $route_match, $entity_type_id)
 
 getOperation ()
 
 setModuleHandler (ModuleHandlerInterface $module_handler)
 
 setEntityManager (EntityManagerInterface $entity_manager)
 
 setEntityTypeManager (EntityTypeManagerInterface $entity_type_manager)
 
- Public Member Functions inherited from EntityFormInterface
 setStringTranslation (TranslationInterface $string_translation)
 
- Public Member Functions inherited from FormInterface
 validateForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from ConfirmFormInterface
 getQuestion ()
 
 getCancelUrl ()
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 logDeletionMessage ()
 
- Protected Member Functions inherited from EntityDeleteForm
 getConfigManager ()
 
 getConfigNamesToDelete (ConfigEntityInterface $entity)
 
- Protected Member Functions inherited from EntityConfirmFormBase
 actions (array $form, FormStateInterface $form_state)
 
- Protected Member Functions inherited from EntityForm
 init (FormStateInterface $form_state)
 
 actionsElement (array $form, FormStateInterface $form_state)
 
 actions (array $form, FormStateInterface $form_state)
 
 copyFormValuesToEntity (EntityInterface $entity, array $form, FormStateInterface $form_state)
 
 prepareEntity ()
 
 prepareInvokeAll ($hook, FormStateInterface $form_state)
 

Protected Attributes

 $menuLinkManager
 
 $connection
 
- Protected Attributes inherited from EntityForm
 $operation
 
 $moduleHandler
 
 $entityManager
 
 $entityTypeManager
 
 $entity
 

Detailed Description

Defines a confirmation form for deletion of a custom menu.

Constructor & Destructor Documentation

__construct ( MenuLinkManagerInterface  $menu_link_manager,
Connection  $connection 
)

Constructs a new MenuDeleteForm.

Parameters
\Drupal\Core\Menu\MenuLinkManagerInterface$menu_link_managerThe menu link manager.
\Drupal\Core\Database\Connection$connectionThe database connection.

Member Function Documentation

static create ( ContainerInterface  $container)
static

{}

getDescription ( )

{Returns additional text to display as a description.

Returns
string The form description.
}

Implements ConfirmFormInterface.

References t().

Here is the call graph for this function:

logDeletionMessage ( )
protected

{}

References Drupal\logger().

Here is the call graph for this function:

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{Form submission handler.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
}

Implements FormInterface.


The documentation for this class was generated from the following file: