Xss::attributes

protected static Xss::attributes($attributes) Processes a string of HTML attributes. Parameters string $attributes: The html attribute to process. Return value string Cleaned up version of the HTML attributes. File core/lib/Drupal/Component/Utility/Xss.php, line 198 Class Xss Provides helper to filter for cross-site scripting. Namespace Drupal\Component\Utility Code protected static function attributes($attributes) { $attributes_array = array(); $mode = 0; $attribute_name = '';

WidgetBase::flagErrors

public WidgetBase::flagErrors(FieldItemListInterface $items, ConstraintViolationListInterface $violations, array $form, FormStateInterface $form_state) Reports field-level validation errors against actual form elements. Parameters \Drupal\Core\Field\FieldItemListInterface $items: The field values. \Symfony\Component\Validator\ConstraintViolationListInterface $violations: A list of constraint violations to flag. array $form: The form structure where field elements are attached to. This might be

Drupal

Static Service Container wrapper. Generally, code in Drupal should accept its dependencies via either constructor injection or setter method injection. However, there are cases, particularly in legacy procedural code, where that is infeasible. This class acts as a unified global accessor to arbitrary services within the system in order to ease the transition from procedural code to injected OO code. The container is built by the kernel and passed in to this class which stores it statically. The

TermAccessControlHandler

Defines the access control handler for the taxonomy term entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\taxonomy\TermAccessControlHandler See also \Drupal\taxonomy\Entity\Term File core/modules/taxonomy/src/TermAccessControlHandler.php, line 15 Namespace Drupal\taxonomy Members Name Modifiers

ConfigHandler

Provides a form for configuring an item in the Views UI. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\views_ui\Form\Ajax\ViewsFormBase implements ViewsFormInterfaceclass \Drupal\views_ui\Form\Ajax\ConfigHandler File core/modules/views_ui/src/Form/Ajax/ConfigHandler.php, line 14 Name

ApcuBackend::get

public ApcuBackend::get($cid, $allow_invalid = FALSE) Returns data from the persistent cache. Parameters string $cid: The cache ID of the data to retrieve. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Such items may sometimes be preferred, if the alternative is recalculating the value stored in the cache, especially if another concurrent request is already recalculating the same value. The "valid" property of the returned

NodeRevisionRevertTranslationForm::getQuestion

public NodeRevisionRevertTranslationForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides NodeRevisionRevertForm::getQuestion File core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php, line 67 Class NodeRevisionRevertTranslationForm Provides a form for reverting a node revision for a single translation. Namespace Drupal\node\Form Code public function getQuestion() { return t('A

NegotiationConfigureForm

Configure the selected language negotiation method for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\language\Form\NegotiationConfigureForm File core/modules/language/src/Form/NegotiationConfigureForm.php, line 21

NodeRevisionRevertForm::buildForm

public NodeRevisionRevertForm::buildForm(array $form, FormStateInterface $form_state, $node_revision = NULL) 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 ConfirmFormBase::buildForm File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 100 Class NodeRevisionRevertForm Provides a form for reverti

CloseModalDialogCommand

Defines an AJAX command that closes the currently visible modal dialog. Hierarchy class \Drupal\Core\Ajax\CloseDialogCommand implements CommandInterfaceclass \Drupal\Core\Ajax\CloseModalDialogCommand Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description CloseDialogCommand::$persist protected property Whether to persist the dialog in