ContactForm::$id

The form ID. Type: string File core/modules/contact/src/Entity/ContactForm.php, line 55 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code protected $id;

ContactForm

Defines the contact form entity. Plugin annotation @ConfigEntityType( id = "contact_form", label = @Translation("Contact form"), handlers = { "access" = "Drupal\contact\ContactFormAccessControlHandler", "list_builder" = "Drupal\contact\ContactFormListBuilder", "form" = { "add" = "Drupal\contact\ContactFormEditForm", "edit" = "Drupal\contact\ContactFormEditForm", "delete" = "Drupal\Core\Entity\EntityDeleteForm" } }, config_prefix = "form", admin_perm

ContactController::__construct

public ContactController::__construct(RendererInterface $renderer) Constructs a ContactController object. Parameters \Drupal\Core\Render\RendererInterface $renderer: The renderer. File core/modules/contact/src/Controller/ContactController.php, line 30 Class ContactController Controller routines for contact routes. Namespace Drupal\contact\Controller Code public function __construct(RendererInterface $renderer) { $this->renderer = $renderer; }

ContactController::create

public static ContactController::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 servic

ContactController::contactSitePage

public ContactController::contactSitePage(ContactFormInterface $contact_form = NULL) Presents the site-wide contact form. Parameters \Drupal\contact\ContactFormInterface $contact_form: The contact form to use. Return value array The form as render array as expected by drupal_render(). Throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException Exception is thrown when user tries to access non existing default contact form. File core/modules/contact/src/Controller/ContactController.p

ContactController::contactPersonalPage

public ContactController::contactPersonalPage(UserInterface $user) Form constructor for the personal contact form. Parameters \Drupal\user\UserInterface $user: The account for which a personal contact form should be generated. Return value array The personal contact form as render array as expected by drupal_render(). Throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException Exception is thrown when user tries to access a contact form for a user who does not have an email address

ContactController::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/contact/src/Controller/ContactController.php, line 22 Class ContactController Controller routines for contact routes. Namespace Drupal\contact\Controller Code protected $renderer;

ContactController

Controller routines for contact routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\contact\Controller\ContactController File core/modules/contact/src/Controller/ContactController.php, line 15 Namespace Drupal\contact\Controller Members Name Modifiers Type Description ContactController::$renderer prot

contact.views.inc

Provide views data for contact.module. File core/modules/contact/contact.views.inc Functions Name Description contact_views_data_alter Implements hook_views_data_alter().

contact.module

Enables the use of personal and site-wide contact forms. File core/modules/contact/contact.module Functions Name Description contact_entity_extra_field_info Implements hook_entity_extra_field_info(). contact_entity_type_alter Implements hook_entity_type_alter(). contact_form_user_admin_settings_alter Implements hook_form_FORM_ID_alter(). contact_form_user_admin_settings_submit Form submission handler for user_admin_settings(). contact_form_user_form_alter Implements ho