TermStorage::resetWeights

public TermStorage::resetWeights($vid) Reset the weights for a given vocabulary ID. Parameters string $vid: Vocabulary ID to retrieve terms for. Overrides TermStorageInterface::resetWeights File core/modules/taxonomy/src/TermStorage.php, line 305 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code public function resetWeights($vid) { $this->database->update('taxonomy_term_field_data') ->fields(array('weight' => 0)) ->

SearchPageEditForm

Provides a form for editing a search page. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\search\Form\SearchPageFormBaseclass \Drupal\search\Form\SearchPageEditForm File core/modules/search/src/Form/SearchPageEditForm.ph

TypeLinkManagerInterface

Hierarchy interface \Drupal\rest\LinkManager\ConfigurableLinkManagerInterfaceinterface \Drupal\rest\LinkManager\TypeLinkManagerInterface File core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php, line 5 Namespace Drupal\rest\LinkManager Members Name Modifiers Type Description ConfigurableLinkManagerInterface::setLinkDomain public function Sets the link domain used in constructing link URIs. TypeLinkManagerInterface::getTypeInternalIds public function G

file_validate_image_resolution

file_validate_image_resolution(FileInterface $file, $maximum_dimensions = 0, $minimum_dimensions = 0) Verifies that image dimensions are within the specified maximum and minimum. Non-image files will be ignored. If an image toolkit is available the image will be scaled to fit within the desired maximum dimensions. Parameters \Drupal\file\FileInterface $file: A file entity. This function may resize the file affecting its size. string|int $maximum_dimensions: (optional) A string in the form WIDT

ConfigTranslationController::itemPage

public ConfigTranslationController::itemPage(Request $request, RouteMatchInterface $route_match, $plugin_id) Language translations overview page for a configuration name. Parameters \Symfony\Component\HttpFoundation\Request $request: Page request object. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. string $plugin_id: The plugin ID of the mapper. Return value array Page render array. File core/modules/config_translation/src/Controller/ConfigTranslationController.php,

LocaleLookup

A cache collector to allow for dynamic building of the locale cache. Hierarchy class \Drupal\Core\Cache\CacheCollector implements CacheCollectorInterface, DestructableInterfaceclass \Drupal\locale\LocaleLookup File core/modules/locale/src/LocaleLookup.php, line 15 Namespace Drupal\locale Members Name Modifiers Type Description CacheCollector::$cacheCreated protected property Stores the cache creation time. CacheCollector::$cacheInvalidated protected property Fla

ViewDuplicateForm

Form controller for the Views duplicate form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\views_ui\ViewFormBaseclass \Drupal\views_ui\ViewDuplicateForm File core/modules/views_ui/src/ViewDuplicateForm.php, line 10

MemoryBackend

Defines a memory cache implementation. Stores cache items in memory using a PHP array. Should be used for unit tests and specialist use-cases only, does not store cached items between requests. Hierarchy class \Drupal\Core\Cache\MemoryBackend implements CacheBackendInterface, CacheTagsInvalidatorInterface Related topics Cache API Information about the Drupal Cache API File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 15 Namespace Drupal\Core\Cache Members Name Modifiers Ty

AccountSettingsForm::buildForm

public AccountSettingsForm::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 ConfigFormBase::buildForm File core/modules/user/src/AccountSettingsForm.php, line 79 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user C

ckeditor_help

ckeditor_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/ckeditor/ckeditor.module, line 15 Provides integration with the CKEditor WYSIWYG editor. Code function ckeditor_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.ckeditor': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The CKEditor module provides a highly-accessible, highly-u