container.html.twig

Default theme implementation of a container used to wrap child elements. Used for grouped form items. Can also be used as a theme wrapper for any renderable element, to surround it with a <div> and HTML attributes. See \Drupal\Core\Render\Element\RenderElement for more information on the #theme_wrappers render array property, and \Drupal\Core\Render\Element\container for usage of the container render element. Available variables: attributes: HTML attributes for the containing element. c

Container

Extends the Drupal container to set the service ID on the created object. Hierarchy class \Drupal\Component\DependencyInjection\Container implements IntrospectableContainerInterface, ResettableContainerInterfaceclass \Drupal\Core\DependencyInjection\Container File core/lib/Drupal/Core/DependencyInjection/Container.php, line 11 Namespace Drupal\Core\DependencyInjection Members Name Modifiers Type Description Container::$aliases protected property The aliases of the conta

Container

Provides a render element that wraps child elements in a container. Surrounds child elements with a <div> and adds attributes such as classes or an HTML ID. Usage example: $form['needs_accommodation'] = array( '#type' => 'checkbox', '#title' => $this->t('Need Special Accommodations?'), ); $form['accommodation'] = array( '#type' => 'container', '#attributes' => array( 'class' => 'accommodation', ), '#states' => array( 'invisible' => array(

Container

Provides a container optimized for Drupal's needs. This container implementation is compatible with the default Symfony dependency injection container and similar to the Symfony ContainerBuilder class, but optimized for speed. It is based on a PHP array container definition dumped as a performance-optimized machine-readable format. The best way to initialize this container is to use a Container Builder, compile it and then retrieve the definition via \Drupal\Component\DependencyInjection\Dumper

contact_views_data_alter

contact_views_data_alter(&$data) Implements hook_views_data_alter(). File core/modules/contact/contact.views.inc, line 11 Provide views data for contact.module. Code function contact_views_data_alter(&$data) { $data['users']['contact'] = array( 'field' => array( 'title' => t('Contact link'), 'help' => t('Provide a simple link to the user contact page.'), 'id' => 'contact_link', ), ); }

contact_user_profile_form_submit

contact_user_profile_form_submit($form, FormStateInterface $form_state) Submit callback for the user profile form to save the contact page setting. File core/modules/contact/contact.module, line 192 Enables the use of personal and site-wide contact forms. Code function contact_user_profile_form_submit($form, FormStateInterface $form_state) { $account = $form_state->getFormObject()->getEntity(); if ($account->id() && $form_state->hasValue('contact')) { \Drupal::serv

contact_post_update_add_message_redirect_field_to_contact_form

contact_post_update_add_message_redirect_field_to_contact_form() Initialize 'message' and 'redirect' field values to 'contact_form' entities. File core/modules/contact/contact.post_update.php, line 18 Post update functions for Contact. Code function contact_post_update_add_message_redirect_field_to_contact_form() { /** @var \Drupal\contact\ContactFormInterface $contact */ foreach (ContactForm::loadMultiple() as $contact) { $contact ->setMessage('Your message has been sent.')

contact_menu_local_tasks_alter

contact_menu_local_tasks_alter(&$data, $route_name) Implements hook_menu_local_tasks_alter(). Hides the 'Contact' tab on the user profile if the user does not have an email address configured. File core/modules/contact/contact.module, line 93 Enables the use of personal and site-wide contact forms. Code function contact_menu_local_tasks_alter(&$data, $route_name) { if ($route_name == 'entity.user.canonical') { foreach ($data['tabs'][0] as $href => $tab_data) { if ($href

contact_mail

contact_mail($key, &$message, $params) Implements hook_mail(). File core/modules/contact/contact.module, line 110 Enables the use of personal and site-wide contact forms. Code function contact_mail($key, &$message, $params) { $contact_message = $params['contact_message']; /** @var $sender \Drupal\user\UserInterface */ $sender = $params['sender']; $language = \Drupal::languageManager()->getLanguage($message['langcode']); $variables = array( '@site-name' => \Drupal:

contact_help

contact_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/contact/contact.module, line 15 Enables the use of personal and site-wide contact forms. Code function contact_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.contact': $menu_page = \Drupal::moduleHandler()->moduleExists('menu_ui') ? \Drupal::url('entity.menu.collection') : '#'; $block_page = \Drupal::moduleHandler()->modul