comment_form_field_storage_config_edit_form_alter

comment_form_field_storage_config_edit_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for 'field_storage_config_edit_form'. File core/modules/comment/comment.module, line 328 Enables users to comment on published content. Code function comment_form_field_storage_config_edit_form_alter(&$form, FormStateInterface $form_state) { if ($form_state->getFormObject()->getEntity()->getType() == 'comment') { // We only support posting one c

Radios::valueCallback

public static Radios::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to assig

ChainedFastBackend::setMultiple

public ChainedFastBackend::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, see C

MenuLinkManager::countMenuLinks

public MenuLinkManager::countMenuLinks($menu_name = NULL) Counts the total number of menu links. Parameters string $menu_name: (optional) The menu name to count by. Defaults to all menus. Return value int The number of menu links in the named menu, or in all menus if the menu name is NULL. Overrides MenuLinkManagerInterface::countMenuLinks File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 309 Class MenuLinkManager Manages discovery, instantiation, and tree building of menu link pl

Schema::fieldExists

public Schema::fieldExists($table, $column) Check if a column exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the column. Return value TRUE if the given column exists, otherwise FALSE. Overrides Schema::fieldExists File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 584 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public function fieldEx

Select::havingIsNotNull

public Select::havingIsNotNull($field) Sets a condition in the HAVING clause that the specified field be NOT NULL. Parameters $field: The name of the field to check. Return value $this Overrides SelectInterface::havingIsNotNull File core/lib/Drupal/Core/Database/Query/Select.php, line 338 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function havingIsNotNull($field) { $this->having->isNotNull($field); return $this; }

SystemMenuOffCanvasForm::__construct

public SystemMenuOffCanvasForm::__construct(EntityStorageInterface $menu_storage, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) SystemMenuOffCanvasForm constructor. Parameters \Drupal\Core\Entity\EntityStorageInterface $menu_storage: \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: \Drupal\Core\StringTranslation\TranslationInterface $string_translation: File core/modules/outside_in/src/Form/SystemMenuOffCanvasForm.php, line 57

RegisterLazyRouteEnhancers

Registers all lazy route enhancers onto the lazy route enhancers. Hierarchy class \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteEnhancers implements CompilerPassInterface File core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php, line 11 Namespace Drupal\Core\DependencyInjection\Compiler Members Name Modifiers Type Description RegisterLazyRouteEnhancers::process public function You can modify the container here before it is dumped

ThemeSettingsForm::getFormId

public ThemeSettingsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/system/src/Form/ThemeSettingsForm.php, line 84 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code public function getFormId() { return 'system_theme_settings'; }

MaintenanceModeSubscriber::$account

The current account. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 38 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code protected $account;