Drupal 8  8.0.2
PathFormBase Class Reference
Inheritance diagram for PathFormBase:

Public Member Functions

 __construct (AliasStorageInterface $alias_storage, AliasManagerInterface $alias_manager, PathValidatorInterface $path_validator, RequestContext $request_context)
 
 buildForm (array $form, FormStateInterface $form_state, $pid=NULL)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 buildPath ($pid)
 

Protected Attributes

 $path
 
 $aliasStorage
 
 $aliasManager
 
 $pathValidator
 
 $requestContext
 

Detailed Description

Provides a base class for path add/edit forms.

Constructor & Destructor Documentation

__construct ( AliasStorageInterface  $alias_storage,
AliasManagerInterface  $alias_manager,
PathValidatorInterface  $path_validator,
RequestContext  $request_context 
)

Constructs a new PathController.

Parameters
\Drupal\Core\Path\AliasStorageInterface$alias_storageThe path alias storage.
\Drupal\Core\Path\AliasManagerInterface$alias_managerThe path alias manager.
\Drupal\Core\Path\PathValidatorInterface$path_validatorThe path validator.
\Drupal\Core\Routing\RequestContext$request_contextThe request context.

References Drupal\pathValidator().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state,
  $pid = NULL 
)

{}

References PathFormBase\buildPath(), LanguageInterface\LANGCODE_NOT_SPECIFIED, Drupal\languageManager(), Drupal\moduleHandler(), and t().

Here is the call graph for this function:

buildPath (   $pid)
abstractprotected

Builds the path used by the form.

Parameters
int | null$pidEither the unique path ID, or NULL if a new one is being created.

Referenced by PathFormBase\buildForm().

Here is the caller graph for this function:

static create ( ContainerInterface  $container)
static

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References FormStateInterface\cleanValues(), FormStateInterface\getValue(), LanguageInterface\LANGCODE_NOT_SPECIFIED, FormStateInterface\setRedirect(), and t().

Here is the call graph for this function:

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References FormStateInterface\getValue(), LanguageInterface\LANGCODE_NOT_SPECIFIED, Drupal\pathValidator(), FormStateInterface\setErrorByName(), and t().

Here is the call graph for this function:


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