Checkboxes::valueCallback

public static Checkboxes::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 a

DblogFilterForm::validateForm

public DblogFilterForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/dblog/src/Form/DblogFilterForm.php, line 66 Class DblogFilterForm Provides the database logging filter form. Namespace Drupal\dblog\Form Code public function vali

DisplayVariant::$admin_label

The administrative label. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php, line 51 Class DisplayVariant Defines a display variant annotation object. Namespace Drupal\Core\Display\Annotation Code public $admin_label = '';

CommentStorageInterface::getUnapprovedCount

public CommentStorageInterface::getUnapprovedCount() Returns the number of unapproved comments. Return value int The number of unapproved comments. File core/modules/comment/src/CommentStorageInterface.php, line 111 Class CommentStorageInterface Defines an interface for comment entity storage classes. Namespace Drupal\comment Code public function getUnapprovedCount();

ContainerBuilder::__construct

public ContainerBuilder::__construct(ParameterBagInterface $parameterBag = NULL) Constructor. Parameters ParameterBagInterface $parameterBag A ParameterBagInterface instance: Overrides Container::__construct File core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 29 Class ContainerBuilder Drupal's dependency injection container builder. Namespace Drupal\Core\DependencyInjection Code public function __construct(ParameterBagInterface $parameterBag = NULL) { $this->

hook_node_search_result

hook_node_search_result(\Drupal\node\NodeInterface $node) Act on a node being displayed as a search result. This hook is invoked from the node search plugin during search execution, after loading and rendering the node. Parameters \Drupal\node\NodeInterface $node: The node being displayed in a search result. Return value array Extra information to be displayed with search result. This information should be presented as an associative array. It will be concatenated with the post information (l

SiteConfigureForm::submitForm

public SiteConfigureForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides ConfigFormBase::submitForm File core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 259 Class SiteConfigureForm Provides the site configuration form. Namespace Drupal\Core\Installer\Form Code

InstallStorage::CONFIG_INSTALL_DIRECTORY

Extension sub-directory containing default configuration for installation. File core/lib/Drupal/Core/Config/InstallStorage.php, line 24 Class InstallStorage Storage used by the Drupal installer. Namespace Drupal\Core\Config Code const CONFIG_INSTALL_DIRECTORY = 'config/install';

locale_schema

locale_schema() Implements hook_schema(). File core/modules/locale/locale.install, line 53 Install, update, and uninstall functions for the Locale module. Code function locale_schema() { $schema['locales_source'] = array( 'description' => 'List of English source strings.', 'fields' => array( 'lid' => array( 'type' => 'serial', 'not null' => TRUE, 'description' => 'Unique identifier of this string.', ), 'source' => array(

hook_user_format_name_alter

hook_user_format_name_alter(&$name, $account) Alter the username that is displayed for a user. Called by $account->getDisplayName() to allow modules to alter the username that is displayed. Can be used to ensure user privacy in situations where $account->getDisplayName() is too revealing. Parameters string $name: The string that $account->getDisplayName() will return. $account: The account object the name belongs to. See also \Drupal\Core\Session\AccountInterface::getDisplayName(