NodeRevisionRevertTranslationForm

Provides a form for reverting a node revision for a single translation. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\node\Form\NodeRevisionRevertFormclass \Drupal\node\Form\NodeRevisionRevertTranslationForm File co

BlockAccessControlHandler::$contextHandler

The plugin context handler. Type: \Drupal\Core\Plugin\Context\ContextHandlerInterface File core/modules/block/src/BlockAccessControlHandler.php, line 42 Class BlockAccessControlHandler Defines the access control handler for the block entity type. Namespace Drupal\block Code protected $contextHandler;

ClientFactory

Helper class to construct a HTTP client with Drupal specific config. Hierarchy class \Drupal\Core\Http\ClientFactory File core/lib/Drupal/Core/Http/ClientFactory.php, line 13 Namespace Drupal\Core\Http Members Name Modifiers Type Description ClientFactory::$stack protected property The handler stack. ClientFactory::fromOptions public function Constructs a new client object from some configuration. ClientFactory::__construct public function Constructs a ne

OptimizedPhpArrayDumper::escape

protected OptimizedPhpArrayDumper::escape(array $parameters) Escapes parameters. Parameters array $parameters: The parameters to escape for '%' characters. Return value array The escaped parameters. File core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php, line 169 Class OptimizedPhpArrayDumper OptimizedPhpArrayDumper dumps a service container as a serialized PHP array. Namespace Drupal\Component\DependencyInjection\Dumper Code protected function escape(a

ActionFormBase::buildForm

public ActionFormBase::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides EntityForm::buildForm File core/modules/action/src/ActionFormBase.php, line 52 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code public func

_batch_next_set

_batch_next_set() Retrieves the next set in a batch. If there is a subsequent set in this batch, assign it as the new set to process and execute its form submit handler (if defined), which may add further sets to this batch. Return value true|null TRUE if a subsequent set was found in the batch; no value will be returned if no subsequent set was found. File core/includes/batch.inc, line 379 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_next_set() {

EntityTypeEventSubscriberTrait::onEntityTypeCreate

public EntityTypeEventSubscriberTrait::onEntityTypeCreate(EntityTypeInterface $entity_type) Reacts to the creation of the entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type being created. Overrides EntityTypeListenerInterface::onEntityTypeCreate File core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php, line 59 Class EntityTypeEventSubscriberTrait Helper methods for EntityTypeListenerInterface. Namespace Drupal\Core\Entity Code publ

Image::scaleDimensions

public static Image::scaleDimensions(array &$dimensions, $width = NULL, $height = NULL, $upscale = FALSE) Scales image dimensions while maintaining aspect ratio. The resulting dimensions can be smaller for one or both target dimensions. Parameters array $dimensions: Dimensions to be modified - an array with components width and height, in pixels. int $width: (optional) The target width, in pixels. If this value is NULL then the scaling will be based only on the height value. int $height: (

template_preprocess_file_managed_file

template_preprocess_file_managed_file(&$variables) Prepares variables for file form widget templates. Default template: file-managed-file.html.twig. Parameters array $variables: An associative array containing: element: A render element representing the file. File core/modules/file/file.module, line 1220 Defines a "managed_file" Form API field and a "file" field for Field module. Code function template_preprocess_file_managed_file(&$variables) { $element = $variables['element'];

MenuRouterRebuildSubscriber::onRouterRebuild

public MenuRouterRebuildSubscriber::onRouterRebuild(Event $event) Rebuilds the menu links and deletes the local_task cache tag. Parameters \Symfony\Component\EventDispatcher\Event $event: The event object. File core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php, line 48 Class MenuRouterRebuildSubscriber Rebuilds the default menu links and runs menu-specific code if necessary. Namespace Drupal\Core\EventSubscriber Code public function onRouterRebuild(Event $event) {