CacheCollectorInterface::clear

public CacheCollectorInterface::clear() Clears the collected cache entry. File core/lib/Drupal/Core/Cache/CacheCollectorInterface.php, line 74 Class CacheCollectorInterface Provides a caching wrapper to be used in place of large structures. Namespace Drupal\Core\Cache Code public function clear();

DialogRenderer::renderResponse

public DialogRenderer::renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match) Renders the main content render array into a response. Parameters array $main_content: The render array representing the main content. \Symfony\Component\HttpFoundation\Request $request: The request object, for context. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context. Return value \Symfony\Component\HttpFoundation\Response The Response in the forma

LanguageConfigFactoryOverride::loadOverrides

public LanguageConfigFactoryOverride::loadOverrides($names) Returns config overrides. Parameters array $names: A list of configuration names that are being loaded. Return value array An array keyed by configuration name of override data. Override data contains a nested array structure of overrides. Overrides ConfigFactoryOverrideInterface::loadOverrides File core/modules/language/src/Config/LanguageConfigFactoryOverride.php, line 81 Class LanguageConfigFactoryOverride Provides language o

RoutePreloader::onRequest

public RoutePreloader::onRequest(KernelEvent $event) Loads all non-admin routes right before the actual page is rendered. Parameters \Symfony\Component\HttpKernel\Event\KernelEvent $event: The event to process. File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 71 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code public function onRequest(KernelEvent $event) { // Only preload on normal HTML pages, as they will display me

FormCache::setCache

public FormCache::setCache($form_build_id, $form, FormStateInterface $form_state) Stores a form in the cache. Parameters string $form_build_id: The unique form build ID. array $form: The form to cache. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormCacheInterface::setCache File core/lib/Drupal/Core/Form/FormCache.php, line 172 Class FormCache Encapsulates the caching of a form and its form state. Namespace Drupal\Core\Form Code public fu

FormCacheInterface

Provides an interface for the caching of a form and its form state. Hierarchy interface \Drupal\Core\Form\FormCacheInterface File core/lib/Drupal/Core/Form/FormCacheInterface.php, line 8 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormCacheInterface::deleteCache public function Deletes a form in the cache. FormCacheInterface::getCache public function Fetches a form from the cache. FormCacheInterface::setCache public function Stores

ViewEditForm::submitDisplayAdd

public ViewEditForm::submitDisplayAdd($form, FormStateInterface $form_state) Submit handler to add a display to a view. File core/modules/views_ui/src/ViewEditForm.php, line 827 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function submitDisplayAdd($form, FormStateInterface $form_state) { $view = $this->entity; // Create the new display. $parents = $form_state->getTriggeringElement()['#parents']; $display_type = array_p

LocalTaskManagerInterface::getTitle

public LocalTaskManagerInterface::getTitle(LocalTaskInterface $local_task) Gets the title for a local task. Parameters \Drupal\Core\Menu\LocalTaskInterface $local_task: A local task plugin instance to get the title for. Return value string The localized title. File core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php, line 26 Class LocalTaskManagerInterface Manages discovery and instantiation of menu local task plugins. Namespace Drupal\Core\Menu Code public function getTitle(Loca

Query::result

protected Query::result() Executes the query and returns the result. Return value int|array Returns the query result as entity IDs. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 243 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected function result() { if ($this->count) { return $this->sqlQuery->countQuery()->execute()->fetchField(); } // Return a keyed array of results. The key is either the revi

RouteProviderInterface::getRoutesByPattern

public RouteProviderInterface::getRoutesByPattern($pattern) Get all routes which match a certain pattern. Parameters string $pattern: The route pattern to search for (contains {} as placeholders). Return value \Symfony\Component\Routing\RouteCollection Returns a route collection of matching routes. File core/lib/Drupal/Core/Routing/RouteProviderInterface.php, line 23 Class RouteProviderInterface Extends the router provider interface Namespace Drupal\Core\Routing Code public function