ThemeInstaller::$logger

Type: \Psr\Log\LoggerInterface File core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 57 Class ThemeInstaller Manages theme installation/uninstallation. Namespace Drupal\Core\Extension Code protected $logger;

ThemeInitializationInterface::getActiveThemeByName

public ThemeInitializationInterface::getActiveThemeByName($theme_name) Builds an active theme object. Parameters string $theme_name: The machine name of the theme. Return value \Drupal\Core\Theme\ActiveTheme An active theme object instance for the given theme. Throws \Drupal\Core\Theme\MissingThemeDependencyException Thrown when base theme for installed theme is not installed. File core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php, line 36 Class ThemeInitializationInterface De

MenuLinkResetForm::getDescription

public MenuLinkResetForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormBase::getDescription File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 77 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getDescription() { return $this->t('Any customizations will be lost. This action cannot be u

OpCodeCache::isEnabled

public static OpCodeCache::isEnabled() Checks if OpCodeCache is enabled. Return value bool TRUE if opcache is enabled, FALSE otherwise. File core/lib/Drupal/Component/Utility/OpCodeCache.php, line 18 Class OpCodeCache Provides helpers to handle PHP opcode caches. Namespace Drupal\Component\Utility Code public static function isEnabled() { return extension_loaded('Zend OPcache') && ini_get('opcache.enable'); }

ConfigInstallerInterface::checkConfigurationToInstall

public ConfigInstallerInterface::checkConfigurationToInstall($type, $name) Checks the configuration that will be installed for an extension. Parameters string $type: Type of extension to install. string $name: Name of extension to install. Throws \Drupal\Core\Config\UnmetDependenciesException \Drupal\Core\Config\PreExistingConfigException File core/lib/Drupal/Core/Config/ConfigInstallerInterface.php, line 106 Class ConfigInstallerInterface Interface for classes that install config. Nam

template_preprocess_block_content_add_list

template_preprocess_block_content_add_list(&$variables) Prepares variables for a custom block type creation list templates. Default template: block-content-add-list.html.twig. Parameters array $variables: An associative array containing: content: An array of block types. See also block_content_add_page() File core/modules/block_content/block_content.pages.inc, line 21 Provides page callbacks for custom blocks. Code function template_preprocess_block_content_add_list(&$variables)

comment_user_cancel

comment_user_cancel($edit, $account, $method) Implements hook_user_cancel(). File core/modules/comment/comment.module, line 518 Enables users to comment on published content. Code function comment_user_cancel($edit, $account, $method) { switch ($method) { case 'user_cancel_block_unpublish': $comments = entity_load_multiple_by_properties('comment', array('uid' => $account->id())); foreach ($comments as $comment) { $comment->setPublished(CommentInterface::NOT_

FieldConfigBase::getSettings

public FieldConfigBase::getSettings() Returns the array of settings, as required by the used class. See the documentation of the class for supported or required settings. Return value array The array of settings. Overrides DataDefinitionInterface::getSettings File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 335 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function getSettings() { return $this->settings + $th

DatabaseStorage::deleteMultiple

public DatabaseStorage::deleteMultiple(array $keys) Deletes multiple items from the key/value store. Parameters array $keys: A list of item names to delete. Overrides KeyValueStoreInterface::deleteMultiple File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 149 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function deleteMultiple(array $keys) { // Delete in chunks when a large array is passed.

ViewsSort

Defines a Plugin annotation object for views sort handlers. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBaseclass \Drupal\views\Annotation\ViewsSort See also \Drupal\views\Plugin\views\sort\SortPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views sort handler plugins Plugins that handle sorting for V