ConfigSubscriber::getSubscribedEvents

static ConfigSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eve

Comment::setThread

public Comment::setThread($thread) Sets the alphadecimal representation of the comment's place in a thread. Parameters string $thread: The alphadecimal representation of the comment's place in a thread. Return value $this The class instance that this method is called on. Overrides CommentInterface::setThread File core/modules/comment/src/Entity/Comment.php, line 505 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setThread($thread)

CommentType::getDescription

public CommentType::getDescription() Returns the comment type description. Return value string The comment-type description. Overrides CommentTypeInterface::getDescription File core/modules/comment/src/Entity/CommentType.php, line 77 Class CommentType Defines the comment type entity. Namespace Drupal\comment\Entity Code public function getDescription() { return $this->description; }

Breakpoint::getMediaQuery

public Breakpoint::getMediaQuery() Returns the media query. Return value string The media query. Overrides BreakpointInterface::getMediaQuery File core/modules/breakpoint/src/Breakpoint.php, line 32 Class Breakpoint Default object used for breakpoint plugins. Namespace Drupal\breakpoint Code public function getMediaQuery() { return $this->pluginDefinition['mediaQuery']; }

locale.module

Enables the translation of the user interface to languages other than English. When enabled, multiple languages can be added. The site interface can be displayed in different languages, and nodes can have languages assigned. The setup of languages and translations is completely web based. Gettext portable object files are supported. File core/modules/locale/locale.module Functions Name Description locale_cache_flush Implements hook_cache_flush(). locale_configurable_language_delete

ImageToolkitInterface::parseFile

public ImageToolkitInterface::parseFile() Determines if a file contains a valid image. Drupal supports GIF, JPG and PNG file formats when used with the GD toolkit, and may support others, depending on which toolkits are installed. Return value bool TRUE if the file could be found and is an image, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 102 Class ImageToolkitInterface Defines an interface for image toolkits. Namespace Drupal\Core\ImageTool

UserAuthenticationController::$serializerFormats

The available serialization formats. Type: array File core/modules/user/src/Controller/UserAuthenticationController.php, line 87 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected $serializerFormats = [];

HtmlResponseBigPipeSubscriber::getSubscribedEvents

public static HtmlResponseBigPipeSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $pr

color_scheme_form_validate

color_scheme_form_validate($form, FormStateInterface $form_state) Form validation handler for color_scheme_form(). See also color_scheme_form_submit() File core/modules/color/color.module, line 359 Allows users to change the color scheme of themes. Code function color_scheme_form_validate($form, FormStateInterface $form_state) { // Only accept hexadecimal CSS color strings to avoid XSS upon use. foreach ($form_state->getValue('palette') as $key => $color) { if (!color_valid_hex

BlockPageDisplayVariantSubscriber

Selects the block page display variant. Hierarchy class \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber implements EventSubscriberInterface See also \Drupal\block\Plugin\DisplayVariant\BlockPageVariant File core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php, line 14 Namespace Drupal\block\EventSubscriber Members Name Modifiers Type Description BlockPageDisplayVariantSubscriber::getSubscribedEvents static function Returns an arra