AlertCommand::$text

The text to be displayed in the alert box. Type: string File core/lib/Drupal/Core/Ajax/AlertCommand.php, line 17 Class AlertCommand AJAX command for a javascript alert box. Namespace Drupal\Core\Ajax Code protected $text;

HtmlTag::preRenderConditionalComments

public static HtmlTag::preRenderConditionalComments($element) Pre-render callback: Renders #browsers into #prefix and #suffix. Parameters array $element: A render array with a '#browsers' property. The '#browsers' property can contain any or all of the following keys: 'IE': If FALSE, the element is not rendered by Internet Explorer. If TRUE, the element is rendered by Internet Explorer. Can also be a string containing an expression for Internet Explorer to evaluate as part of a conditional co

ConfigTranslationBlockListBuilder

Defines the config translation list builder for blocks. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\config_translation\Controller\ConfigTranslationEntityListBuilder implements ConfigTranslationEntityListBuilderInterfaceclass \Drupal\config_translation\Contr

Password

Provides a form element for entering a password, with hidden text. Usage example: $form['pass'] = array( '#type' => 'password', '#title' => $this->t('Password'), '#size' => 25, ); Plugin annotation @FormElement("password") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderEle

PhpBackend

Defines a PHP cache implementation. Stores cache items in a PHP file using a storage that implements Drupal\Component\PhpStorage\PhpStorageInterface. This is fast because of PHP's opcode caching mechanism. Once a file's content is stored in PHP's opcode cache, including it doesn't require reading the contents from a filesystem. Instead, PHP will use the already compiled opcodes stored in memory. Hierarchy class \Drupal\Core\Cache\PhpBackend implements CacheBackendInterface Related topics Cac

ConfigInstaller::$typedConfig

The typed configuration manager. Type: \Drupal\Core\Config\TypedConfigManagerInterface File core/lib/Drupal/Core/Config/ConfigInstaller.php, line 33 Class ConfigInstaller Namespace Drupal\Core\Config Code protected $typedConfig;

ExtensionDiscovery::scan

public ExtensionDiscovery::scan($type, $include_tests = NULL) Discovers available extensions of a given type. Finds all extensions (modules, themes, etc) that exist on the site. It searches in several locations. For instance, to discover all available modules: $listing = new ExtensionDiscovery(\Drupal::root()); $modules = $listing->scan('module'); The following directories will be searched (in the order stated): the core directory; i.e., /core the installation profile directory; e.g., /cor

BlockContentTypeDeleteForm::$queryFactory

The query factory to create entity queries. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php, line 20 Class BlockContentTypeDeleteForm Provides a confirmation form for deleting a custom block type entity. Namespace Drupal\block_content\Form Code public $queryFactory;

Button::preRenderButton

public static Button::preRenderButton($element) Prepares a #type 'button' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #attributes, #button_type, #name, #value. The #button_type property accepts any value, though core themes have CSS that styles the following button_types appropriately: 'primary', 'danger'. Return value array The $element with prepared variables ready for input.html.twig. File co

Checkbox

Provides a form element for a single checkbox. Properties: #return_value: The value to return when the checkbox is checked. Usage example: $form['copy'] = array( '#type' => 'checkbox', '#title' => $this->t('Send me a copy'), ); Plugin annotation @FormElement("checkbox") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTr