MenuLinkResetForm::linkIsResettable

public MenuLinkResetForm::linkIsResettable(MenuLinkInterface $menu_link_plugin) Checks access based on whether the link can be reset. Parameters \Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin: The menu link plugin being checked. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 116 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\

FormattableMarkup

Formats a string for HTML display by replacing variable placeholders. When cast to a string, this object replaces variable placeholders in the string with the arguments passed in during construction and escapes the values so they can be safely displayed as HTML. See the documentation of \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for details on the supported placeholders and how to use them securely. Incorrect use of this class can result in security vulnerabilities. In most

TranslateEditForm::validateForm

public TranslateEditForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/locale/src/Form/TranslateEditForm.php, line 154 Class TranslateEditForm Defines a translation edit form. Namespace Drupal\locale\Form Code public function valid

OptimizedPhpArrayDumper

OptimizedPhpArrayDumper dumps a service container as a serialized PHP array. The format of this dumper is very similar to the internal structure of the ContainerBuilder, but based on PHP arrays and \stdClass objects instead of rich value objects for performance reasons. By removing the abstraction and optimizing some cases like deep collections, fewer classes need to be loaded, fewer function calls need to be executed and fewer run time checks need to be made. In addition to that, this containe

FieldConfigEditForm

Provides a form for the field settings form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\field_ui\Form\FieldConfigEditForm uses AllowedTagsXssTrait File core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 16

Renderer::ensureMarkupIsSafe

protected Renderer::ensureMarkupIsSafe(array $elements) Escapes #plain_text or filters #markup as required. Drupal uses Twig's auto-escape feature to improve security. This feature automatically escapes any HTML that is not known to be safe. Due to this the render system needs to ensure that all markup it generates is marked safe so that Twig does not do any additional escaping. By default all #markup is filtered to protect against XSS using the admin tag list. Render arrays can alter the list

RenderElement

Provides a base class for render element plugins. Render elements are referenced in render arrays; see the Render API topic for an overview of render arrays and render elements. The elements of render arrays are divided up into properties (whose keys start with #) and children (whose keys do not start with #). The properties provide data or settings that are used in rendering. Some properties are specific to a particular type of render element, some are available for any render element, and som

system_path_update

system_path_update($path) Implements hook_path_update(). File core/modules/system/system.module, line 1429 Configuration system that lets administrators modify the workings of the site. Code function system_path_update($path) { $alias_manager = \Drupal::service('path.alias_manager'); $alias_manager->cacheClear($path['source']); $alias_manager->cacheClear($path['original']['source']); }

TermViewsData

Provides the views data for the taxonomy entity type. Hierarchy class \Drupal\views\EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterface uses StringTranslationTraitclass \Drupal\taxonomy\TermViewsData File core/modules/taxonomy/src/TermViewsData.php, line 10 Namespace Drupal\taxonomy Members Name Modifiers Type Description EntityViewsData::$entityManager protected property The entity manager. EntityViewsData::$entityType protected property

file_unmanaged_move

file_unmanaged_move($source, $destination = NULL, $replace = FILE_EXISTS_RENAME) Moves a file to a new location without database changes or hook invocation. This is a powerful function that in many ways performs like an advanced version of rename(). Checks if $source and $destination are valid and readable/writable. Checks that $source is not equal to $destination; if they are an error is reported. If file already exists in $destination either the call will error out, replace the file or rename