PrependCommand

AJAX command for calling the jQuery insert() method. The 'insert/prepend' command instructs the client to use jQuery's prepend() method to prepend the given HTML content to the inside each element matched by the given selector. This command is implemented by Drupal.AjaxCommands.prototype.insert() defined in misc/ajax.js. Hierarchy class \Drupal\Core\Ajax\InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTraitclass \Drupal\Core\Ajax\Prepe

LocalTaskManager::isRouteActive

protected LocalTaskManager::isRouteActive($current_route_name, $route_name, $route_parameters) Determines whether the route of a certain local task is currently active. Parameters string $current_route_name: The route name of the current main request. string $route_name: The route name of the local task to determine the active status. array $route_parameters: Return value bool Returns TRUE if the passed route_name and route_parameters is considered as the same as the one from the request, oth

ConfigEntityInterface::calculateDependencies

public ConfigEntityInterface::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 146 Class ConfigEntityInterface Defines a common interface for configuration entities. Namespace Drupal\Core\Config\Entity Code public function calculateDependencies();

DefaultExceptionHtmlSubscriber::on403

public DefaultExceptionHtmlSubscriber::on403(GetResponseForExceptionEvent $event) Handles a 403 error for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, line 98 Class DefaultExceptionHtmlSubscriber Exception subscriber for handling core default HTML error pages. Namespace Drupal\Core\EventSubscriber Code public function on403(GetResponseForExce

OpenOffCanvasDialogCommand

Defines an AJAX command to open content in a dialog in a off-canvas tray. Hierarchy class \Drupal\Core\Ajax\OpenDialogCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTraitclass \Drupal\outside_in\Ajax\OpenOffCanvasDialogCommand Related topics Ajax API Overview for Drupal's Ajax API. File core/modules/outside_in/src/Ajax/OpenOffCanvasDialogCommand.php, line 12 Namespace Drupal\outside_in\Ajax Members Name Modifiers Type Des

FinishResponseSubscriber::__construct

public FinishResponseSubscriber::__construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, $http_response_debug_cacheability_headers = FALSE) Constructs a FinishResponseSubscriber object. Parameters \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager object for retrieving the correct language cod

Schema::escapeDefaultValue

protected Schema::escapeDefaultValue($value) Return an escaped version of its parameter to be used as a default value on a column. Parameters mixed $value: The value to be escaped (int, float, null or string). Return value string|int|float The escaped value. File core/lib/Drupal/Core/Database/Schema.php, line 654 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code protected function escapeDefaultValue($value) { if (is_null($value)) {

SearchController::redirectSearchPage

public SearchController::redirectSearchPage(SearchPageInterface $entity) Redirects to a search page. This is used to redirect from /search to the default search page. Parameters \Drupal\search\SearchPageInterface $entity: The search page entity. Return value \Symfony\Component\HttpFoundation\RedirectResponse A redirect to the search page. File core/modules/search/src/Controller/SearchController.php, line 178 Class SearchController Route controller for search. Namespace Drupal\search\C

EarlyRenderingControllerWrapperSubscriber::onController

public EarlyRenderingControllerWrapperSubscriber::onController(FilterControllerEvent $event) Ensures bubbleable metadata from early rendering is not lost. Parameters \Symfony\Component\HttpKernel\Event\FilterControllerEvent $event: The controller event. File core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php, line 90 Class EarlyRenderingControllerWrapperSubscriber Subscriber that wraps controllers, to handle early rendering. Namespace Drupal\Core\EventSu

User::getEmail

public User::getEmail() Returns the email address of this account. Return value string The email address. Overrides AccountInterface::getEmail File core/modules/user/src/Entity/User.php, line 222 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getEmail() { return $this->get('mail')->value; }