ManagedFile::processManagedFile

public static ManagedFile::processManagedFile(&$element, FormStateInterface $form_state, &$complete_form) Render API callback: Expands the managed_file element type. Expands the file type to include Upload and Remove buttons, as well as support for a default value. File core/modules/file/src/Element/ManagedFile.php, line 206 Class ManagedFile Provides an AJAX/progress aware widget for uploading and saving a file. Namespace Drupal\file\Element Code public static function process

View::$base_field

The name of the base field to use. Type: string File core/modules/views/src/Entity/View.php, line 101 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $base_field = 'nid';

Number

Provides a form element for numeric input, with special numeric validation. Properties: #default_value: A valid floating point number. #min: Minimum value. #max: Maximum value. #step: Ensures that the number is an even multiple of step, offset by #min if specified. A #min of 1 and a #step of 2 would allow values of 1, 3, 5, etc. Usage example: $form['quantity'] = array( '#type' => 'number', '#title' => $this->t('Quantity'), ); Plugin annotation @FormElement("number") Hierar

FieldItemList

Represents an entity field; that is, a list of field item objects. An entity field is a list of field items, each containing a set of properties. Note that even single-valued entity fields are represented as list of field items, however for easy access to the contained item the entity field delegates __get() and __set() calls directly to the first item. Hierarchy class \Drupal\Core\TypedData\TypedData implements PluginInspectionInterface, TypedDataInterface uses StringTranslationTrait, TypedDat

AdminNegotiator::$user

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/user/src/Theme/AdminNegotiator.php, line 22 Class AdminNegotiator Sets the active theme on admin pages. Namespace Drupal\user\Theme Code protected $user;

template_preprocess_html

template_preprocess_html(&$variables) Prepares variables for HTML document templates. Default template: html.html.twig. Parameters array $variables: An associative array containing: page: A render element representing the page. File core/includes/theme.inc, line 1254 The theme system, which controls the output of Drupal. Code function template_preprocess_html(&$variables) { $variables['page'] = $variables['html']['page']; unset($variables['html']['page']); $variables['page_t

Textarea

Provides a form element for input of multiple-line text. Properties: #rows: Number of rows in the text box. #cols: Number of columns in the text box. #resizable: Controls whether the text area is resizable. Allowed values are "none", "vertical", "horizontal", or "both" (defaults to "vertical"). Usage example: $form['text'] = array( '#type' => 'textarea', '#title' => $this->t('Text'), ); Plugin annotation @FormElement("textarea") Hierarchy class \Drupal\Component\Plugin\Plugi

SelectExtender::fields

public SelectExtender::fields($table_alias, array $fields = array()) Add multiple fields from the same table to be SELECTed. This method does not return the aliases set for the passed fields. In the majority of cases that is not a problem, as the alias will be the field name. However, if you do need to know the alias you can call getFields() and examine the result to determine what alias was created. Alternatively, simply use addField() for the few fields you care about and this method for the

Interface translation properties

.info.yml file properties for interface translation settings. For modules hosted on drupal.org, a project definition is automatically added to the .info.yml file. Only modules with this project definition are discovered by the update module and use it to check for new releases. Locale module uses the same data to build a list of modules to check for new translations. Therefore modules not hosted at drupal.org, such as custom modules, custom themes, features and distributions, need a way to iden

NodeListBuilder

Defines a class to build a listing of node entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\node\NodeListBuilder See also \Drupal\node\Entity\Node File core/modules/node/src/NodeListBuilder.php, line 19 Namespace Drupal\node Members Name Modifiers Type Description DependencySerializatio