ConfigTranslationEntityListBuilder::sortRowsMultiple

protected ConfigTranslationEntityListBuilder::sortRowsMultiple($a, $b, $keys) Sorts an array by multiple criteria. Parameters array $a: First item for comparison. array $b: Second item for comparison. array $keys: The array keys to sort on. Return value int The comparison result for uasort(). File core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php, line 114 Class ConfigTranslationEntityListBuilder Defines the configuration translation list builder for e

FormBuilder::setCache

public FormBuilder::setCache($form_build_id, $form, FormStateInterface $form_state) Stores a form in the cache. Parameters string $form_build_id: The unique form build ID. array $form: The form to cache. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormCacheInterface::setCache File core/lib/Drupal/Core/Form/FormBuilder.php, line 440 Class FormBuilder Provides form building and processing. Namespace Drupal\Core\Form Code public function set

StorageComparer::extractRenameNames

public StorageComparer::extractRenameNames($name) Extracts old and new configuration names from a configuration change name. Parameters string $name: The configuration change name, as provided by ConfigImporter::createRenameName(). Return value array An associative array of configuration names. The array keys are 'old_name' and 'new_name' representing the old and new configuration object names during a rename operation. Overrides StorageComparerInterface::extractRenameNames See also \Drupal\

user_install

user_install() Implements hook_install(). File core/modules/user/user.install, line 66 Install, update and uninstall functions for the user module. Code function user_install() { $storage = \Drupal::entityManager()->getStorage('user'); // Insert a row for the anonymous user. $storage ->create(array( 'uid' => 0, 'status' => 0, 'name' => '', )) ->save(); // We need some placeholders here as name and mail are unique. // This will be changed by the

MenuLinkContentDeleteForm::getRedirectUrl

protected MenuLinkContentDeleteForm::getRedirectUrl() Returns the URL where the user should be redirected after deletion. Return value \Drupal\Core\Url The redirect URL. Overrides EntityDeleteFormTrait::getRedirectUrl File core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php, line 26 Class MenuLinkContentDeleteForm Provides a delete form for content menu links. Namespace Drupal\menu_link_content\Form Code protected function getRedirectUrl() { return $this->getCan

menu_ui_block_view_system_menu_block_alter

menu_ui_block_view_system_menu_block_alter(array &$build, BlockPluginInterface $block) Implements hook_block_view_BASE_BLOCK_ID_alter() for 'system_menu_block'. File core/modules/menu_ui/menu_ui.module, line 120 Allows administrators to customize the site's navigation menus. Code function menu_ui_block_view_system_menu_block_alter(array &$build, BlockPluginInterface $block) { if ($block->getBaseId() == 'system_menu_block') { $menu_name = $block->getDerivativeId(); $bui

ConfigSnapshotSubscriber::getSubscribedEvents

static ConfigSnapshotSubscriber::getSubscribedEvents() Registers the methods in this class that should be listeners. Return value array An array of event listener definitions. Overrides EventSubscriberInterface::getSubscribedEvents File core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 67 Class ConfigSnapshotSubscriber Create a snapshot when config is imported. Namespace Drupal\Core\EventSubscriber Code static function getSubscribedEvents() { $events[ConfigEven

ConstraintViolationBuilder::$cause

Type: mixed File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 96 Class ConstraintViolationBuilder Defines a constraint violation builder for the Typed Data validator. Namespace Drupal\Core\TypedData\Validation Code protected $cause;

ImageInterface::getHeight

public ImageInterface::getHeight() Returns the height of the image. Return value int|null The height of the image, or NULL if the image is invalid. File core/lib/Drupal/Core/Image/ImageInterface.php, line 24 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getHeight();

WriteSafeSessionHandler

Wraps another SessionHandlerInterface to prevent writes when not allowed. Hierarchy class \Drupal\Core\Session\WriteSafeSessionHandler implements WriteSafeSessionHandlerInterface, SessionHandlerInterface File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 8 Namespace Drupal\Core\Session Members Name Modifiers Type Description WriteSafeSessionHandler::$sessionWritable protected property Whether or not the session is enabled for writing. WriteSafeSessionH