Select

Provides a form element for a drop-down menu or scrolling selection box. Properties: #options: An associative array, where the keys are the values for each option, and the values are the option labels to be shown in the drop-down list. If a value is an array, it will be rendered similarly, but as an optgroup. The key of the sub-array will be used as the label for the optgroup. Nesting optgroups is not allowed. #empty_option: The label that will be displayed to denote no selection. #empty_val

Tel

Provides a form element for entering a telephone number. Provides an HTML5 input element with type of "tel". It provides no special validation. Usage example: $form['phone'] = array( '#type' => 'tel', '#title' => $this->t('Phone'), ); Plugin annotation @FormElement("tel") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTra

update_resolve_dependencies

update_resolve_dependencies($starting_updates) Resolves dependencies in a set of module updates, and orders them correctly. This function receives a list of requested module updates and determines an appropriate order to run them in such that all update dependencies are met. Any updates whose dependencies cannot be met are included in the returned array but have the key 'allowed' set to FALSE; the calling function should take responsibility for ensuring that these updates are ultimately not per

AccountProxy

A proxied implementation of AccountInterface. The reason why we need an account proxy is that we don't want to have global state directly stored in the container. This proxy object avoids multiple invocations of the authentication manager which can happen if the current user is accessed in constructors. It also allows legacy code to change the current user where the user cannot be directly injected into dependent code. Hierarchy class \Drupal\Core\Session\AccountProxy implements AccountProxyInt

UpdaterInterface::postUpdate

public UpdaterInterface::postUpdate() Actions to run after an update has occurred. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 66 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public function postUpdate();

ViewsCache::$id

The plugin ID. Type: string File core/modules/views/src/Annotation/ViewsCache.php, line 21 Class ViewsCache Defines a Plugin annotation object for views cache plugins. Namespace Drupal\views\Annotation Code public $id;

BigPipeResponseAttachmentsProcessor::processAttachments

public BigPipeResponseAttachmentsProcessor::processAttachments(AttachmentsInterface $response) Processes the attachments of a response that has attachments. Libraries, JavaScript settings, feeds, HTML <head> tags, HTML <head> links, HTTP headers, and the HTTP status code are attached to render arrays using the #attached property. The #attached property is an associative array, where the keys are the attachment types and the values are the attached data. For example: $build['#attache

ConfigTranslationFormBase::buildForm

public ConfigTranslationFormBase::buildForm(array $form, FormStateInterface $form_state, RouteMatchInterface $route_match = NULL, $plugin_id = NULL, $langcode = NULL) Implements \Drupal\Core\Form\FormInterface::buildForm(). Builds configuration form with metadata and values from the source language. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Routing\RouteMatchIn

EntityType

Provides an implementation of an entity type and its metadata. Hierarchy class \Drupal\Core\Entity\EntityType implements EntityTypeInterface uses StringTranslationTrait Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Entity/EntityType.php, line 15 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityType::$additional protected property Any additional properties and valu

ContactFormEditForm

Base form for contact form edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\contact\ContactFormEditForm implements ContainerInjectionInterface uses ConfigFormBaseTrait File core/modules/contact/src/ContactFormEd