CatalogItemForm
extends ContentEntityForm
in package
FinalYes
Form controller for the catalog item entity edit forms.
Table of Contents
Properties
- $entityTypeManager : EntityTypeManagerInterface
- The entity type manager interface.
- $request : RequestStack
- The current Drupal request stack.
- $routeMatch : RouteMatchInterface
- The route match interface.
- $syncFieldManager : SyncFieldManager
- The sync field manager.
Methods
- __construct() : mixed
- {@inheritdoc}
- buildForm() : mixed
- {@inheritdoc}
- create() : mixed
- {@inheritdoc}
- save() : int
- {@inheritdoc}
- submitForm() : mixed
- {@inheritdoc}
- validateForm() : mixed
- {@inheritdoc}
Properties
$entityTypeManager
The entity type manager interface.
protected
EntityTypeManagerInterface
$entityTypeManager
$request
The current Drupal request stack.
protected
RequestStack
$request
$routeMatch
The route match interface.
protected
RouteMatchInterface
$routeMatch
$syncFieldManager
The sync field manager.
protected
SyncFieldManager
$syncFieldManager
Methods
__construct()
{@inheritdoc}
public
__construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $current_route_match, RequestStack $request_stack, SyncFieldManager $syncFieldManager) : mixed
Parameters
- $entity_repository : EntityRepositoryInterface
- $entity_type_bundle_info : EntityTypeBundleInfoInterface
- $time : TimeInterface
- $entity_type_manager : EntityTypeManagerInterface
- $current_route_match : RouteMatchInterface
- $request_stack : RequestStack
- $syncFieldManager : SyncFieldManager
buildForm()
{@inheritdoc}
public
buildForm(mixed $form, FormStateInterface $form_state) : mixed
Disable the appropriate fields from the FieldSyncManager when add/editing an item in an existing collection.
Parameters
- $form : mixed
- $form_state : FormStateInterface
create()
{@inheritdoc}
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
save()
{@inheritdoc}
public
save(array<string|int, mixed> $form, FormStateInterface $form_state) : int
Parameters
- $form : array<string|int, mixed>
- $form_state : FormStateInterface
Return values
intsubmitForm()
{@inheritdoc}
public
submitForm(array<string|int, mixed> &$form, FormStateInterface $form_state) : mixed
Parameters
- $form : array<string|int, mixed>
- $form_state : FormStateInterface
validateForm()
{@inheritdoc}
public
validateForm(array<string|int, mixed> &$form, FormStateInterface $form_state) : mixed
Parameters
- $form : array<string|int, mixed>
- $form_state : FormStateInterface