ExceptionLoggingSubscriber

Log exceptions without further handling. Hierarchy class \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php, line 15 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description ExceptionLoggingSubscriber::$logger protected property The logger channel factory. ExceptionLoggingSubscriber::getSubscribedEvents public static function Retu

taxonomy_term_view_multiple

taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL) Constructs a drupal_render() style array from an array of loaded terms. Parameters array $terms: An array of taxonomy terms as returned by Term::loadMultiple(). string $view_mode: View mode; e.g., 'full', 'teaser', etc. string $langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request. Return value array An array in the format expected by drupal_rend

QueueWorkerManager::createInstance

public QueueWorkerManager::createInstance($plugin_id, array $configuration = []) Return value \Drupal\Core\Queue\QueueWorkerInterface Overrides PluginManagerBase::createInstance File core/lib/Drupal/Core/Queue/QueueWorkerManager.php, line 56 Class QueueWorkerManager Defines the queue worker manager. Namespace Drupal\Core\Queue Code public function createInstance($plugin_id, array $configuration = []) { return parent::createInstance($plugin_id, $configuration); }

ThemeCacheContext::getContext

public ThemeCacheContext::getContext() Returns the string representation of the cache context. A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method. Return value string The string representation of the cache context. Overrides CacheContextInterface::getContext File core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 42 Class ThemeCacheContext Defines the ThemeCacheContext service, for "per theme"

ConstraintViolationBuilder::setCode

public ConstraintViolationBuilder::setCode($code) Sets the violation code. Parameters string|null $code The violation code: Return value ConstraintViolationBuilderInterface This builder Overrides ConstraintViolationBuilderInterface::setCode File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 196 Class ConstraintViolationBuilder Defines a constraint violation builder for the Typed Data validator. Namespace Drupal\Core\TypedData\Validation Code public fu

ThemeCacheContext::getLabel

public static ThemeCacheContext::getLabel() Returns the label of the cache context. Return value string The label of the cache context. Overrides CacheContextInterface::getLabel File core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 35 Class ThemeCacheContext Defines the ThemeCacheContext service, for "per theme" caching. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t('Theme'); }

ProxyServicesPass::process

public ProxyServicesPass::process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container: Overrides CompilerPassInterface::process File core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php, line 18 Class ProxyServicesPass Replaces all services with a lazy flag. Namespace Drupal\Core\DependencyInjection\Compiler Code public function process(ContainerBuilder $container) { foreach ($conta

file_validate_name_length

file_validate_name_length(FileInterface $file) Checks for files with names longer than can be stored in the database. Parameters \Drupal\file\FileInterface $file: A file entity. Return value array An empty array if the file name length is smaller than the limit or an array containing an error message if it's not or is empty. File core/modules/file/file.module, line 310 Defines a "managed_file" Form API field and a "file" field for Field module. Code function file_validate_name_length(FileIn

Updater

Defines the base class for Updaters used in Drupal. Hierarchy class \Drupal\Core\Updater\Updater File core/lib/Drupal/Core/Updater/Updater.php, line 12 Namespace Drupal\Core\Updater Members Name Modifiers Type Description Updater::$root protected property The root directory under which new projects will be copied. Updater::$source public property Directory to install from. Updater::factory public static function Returns an Updater of the appropriate type

ThemeInstaller::install

public ThemeInstaller::install(array $theme_list, $install_dependencies = TRUE) Installs a given list of themes. Parameters array $theme_list: An array of theme names. bool $install_dependencies: (optional) If TRUE, dependencies will automatically be installed in the correct order. This incurs a significant performance cost, so use FALSE if you know $theme_list is already complete and in the correct order. Return value bool Whether any of the given themes have been installed. Throws \Drupal\