ImportForm::$file

Uploaded file entity. Type: \Drupal\file\Entity\File File core/modules/locale/src/Form/ImportForm.php, line 22 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code protected $file;

LinkGeneratorInterface::generate

public LinkGeneratorInterface::generate($text, Url $url) Renders a link to a URL. Examples: $link_generator = \Drupal::service('link_generator'); $installer_url = \Drupal\Core\Url::fromUri('base://core/install.php'); $installer_link = $link_generator->generate($text, $installer_url); $external_url = \Drupal\Core\Url::fromUri('http://example.com', ['query' => ['foo' => 'bar']]); $external_link = $link_generator->generate($text, $external_url); $internal_url = \Drupal\Core\Url::fromRo

AccountPermissionsCacheContext::__construct

public AccountPermissionsCacheContext::__construct(AccountInterface $user, PermissionsHashGeneratorInterface $permissions_hash_generator) Constructs a new UserCacheContext service. Parameters \Drupal\Core\Session\AccountInterface $user: The current user. \Drupal\Core\Session\PermissionsHashGeneratorInterface $permissions_hash_generator: The permissions hash generator. Overrides UserCacheContextBase::__construct File core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php, line 31

TranslateEditForm

Defines a translation edit form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\locale\Form\TranslateFormBaseclass \Drupal\locale\Form\TranslateEditForm File core/modules/locale/src/Form/TranslateEditForm.php, line 12 Namespace Drupal\locale\Form Members Name Modifiers Type

DatabaseStorageExpirable

Defines a default key/value store implementation for expiring items. This key/value store implementation uses the database to store key/value data with an expire date. Hierarchy class \Drupal\Core\KeyValueStore\StorageBase implements KeyValueStoreInterfaceclass \Drupal\Core\KeyValueStore\DatabaseStorage uses DependencySerializationTraitclass \Drupal\Core\KeyValueStore\DatabaseStorageExpirable implements KeyValueStoreExpirableInterface File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage

Html::getUniqueId

public static Html::getUniqueId($id) Prepares a string for use as a valid HTML ID and guarantees uniqueness. This function ensures that each passed HTML ID value only exists once on the page. By tracking the already returned ids, this function enables forms, blocks, and other content to be output multiple times on the same page, without breaking (X)HTML validation. For already existing IDs, a counter is appended to the ID string. Therefore, JavaScript and CSS code should not rely on any value t

taxonomy_term_uri

taxonomy_term_uri($term) Entity URI callback. File core/modules/taxonomy/taxonomy.module, line 92 Enables the organization of content into categories. Code function taxonomy_term_uri($term) { return new Url('entity.taxonomy_term.canonical', array( 'taxonomy_term' => $term->id(), )); }

hook_form_FORM_ID_alter

hook_form_FORM_ID_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) Provide a form-specific alteration instead of the global hook_form_alter(). Implementations are responsible for adding cache contexts/tags/max-age as needed. See https://www.drupal.org/developing/api/8/cache. Modules can implement hook_form_FORM_ID_alter() to modify a specific form, rather than implementing hook_form_alter() and checking the form ID, or using long switch statements to alter multiple

CommentAdminOverview

Provides the comments overview administration form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\comment\Form\CommentAdminOverview File core/modules/comment/src/Form/CommentAdminOverview.php, line 18 Namespace Drupal\comment\Form Members Name Modifiers Type Description Co

UserPermissionsForm::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/user/src/Form/UserPermissionsForm.php, line 36 Class UserPermissionsForm Provides the user permissions administration form. Namespace Drupal\user\Form Code protected $moduleHandler;