EntityTypeInterface::isRenderCacheable

public EntityTypeInterface::isRenderCacheable() Indicates whether the rendered output of entities should be cached. Return value bool File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 148 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function isRenderCacheable();

user_load_by_name

user_load_by_name($name) Fetches a user object by account name. Parameters string $name: String with the account's user name. Return value object|bool A fully-loaded $user object upon successful user load or FALSE if user cannot be loaded. See also \Drupal\user\Entity\User::loadMultiple() File core/modules/user/user.module, line 251 Enables the user registration and login system. Code function user_load_by_name($name) { $users = \Drupal::entityTypeManager()->getStorage('user') -&g

FormSubmitterInterface::doSubmitForm

public FormSubmitterInterface::doSubmitForm(&$form, FormStateInterface &$form_state) Handles the submitted form, executing callbacks and processing responses. 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 null|\Symfony\Component\HttpFoundation\Response If a response was set by a submit handler, or if the form needs to redirect, a Response object will be re

ConfigManager::$storages

The configuration storages keyed by collection name. Type: \Drupal\Core\Config\StorageInterface[] File core/lib/Drupal/Core/Config/ConfigManager.php, line 69 Class ConfigManager The ConfigManager provides helper functions for the configuration system. Namespace Drupal\Core\Config Code protected $storages;

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

ThemeHandlerInterface::getName

public ThemeHandlerInterface::getName($theme) Gets the human readable name of a given theme. Parameters string $theme: The machine name of the theme which title should be shown. Return value string Returns the human readable name of the theme. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 151 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function getName($theme);

DRUPAL_USER_TIMEZONE_EMPTY

New users will get an empty time zone at registration. File core/modules/system/system.module, line 39 Configuration system that lets administrators modify the workings of the site. Code const DRUPAL_USER_TIMEZONE_EMPTY = 1;

template_preprocess_views_view_table

template_preprocess_views_view_table(&$variables) Prepares variables for views table templates. Default template: views-view-table.html.twig. Parameters array $variables: An associative array containing: view: A ViewExecutable object. rows: The raw row data. File core/modules/views/views.theme.inc, line 410 Preprocessors and helper functions to make theming easier. Code function template_preprocess_views_view_table(&$variables) { $view = $variables['view']; // We need the ra

ElementInfoManager::getInfoProperty

public ElementInfoManager::getInfoProperty($type, $property_name, $default = NULL) Retrieves a single property for the defined element type. Parameters string $type: An element type as defined by an element plugin. string $property_name: The property within the element type that should be returned. $default: (Optional) The value to return if the element type does not specify a value for the property. Defaults to NULL. Return value string The property value of the defined element type. Or the

ConditionAggregateInterface::compile

public ConditionAggregateInterface::compile($query) Compiles this conditional clause. Parameters $query: The query object this conditional clause belongs to. File core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php, line 68 Class ConditionAggregateInterface Defines aggregated entity query conditions. Namespace Drupal\Core\Entity\Query Code public function compile($query);