Settings::__clone

private Settings::__clone() Protects creating with clone. File core/lib/Drupal/Core/Site/Settings.php, line 55 Class Settings Read only settings that are initialized with the class. Namespace Drupal\Core\Site Code private function __clone() { }

Container

Provides a render element that wraps child elements in a container. Surrounds child elements with a <div> and adds attributes such as classes or an HTML ID. Usage example: $form['needs_accommodation'] = array( '#type' => 'checkbox', '#title' => $this->t('Need Special Accommodations?'), ); $form['accommodation'] = array( '#type' => 'container', '#attributes' => array( 'class' => 'accommodation', ), '#states' => array( 'invisible' => array(

dblog_menu_links_discovered_alter

dblog_menu_links_discovered_alter(&$links) Implements hook_menu_links_discovered_alter(). File core/modules/dblog/dblog.module, line 42 System monitoring and logging for administrators. Code function dblog_menu_links_discovered_alter(&$links) { if (\Drupal::moduleHandler()->moduleExists('search')) { $links['dblog.search'] = array( 'title' => new TranslatableMarkup('Top search phrases'), 'route_name' => 'dblog.search', 'description' => new Translatab

ModuleInstaller::__construct

public ModuleInstaller::__construct($root, ModuleHandlerInterface $module_handler, DrupalKernelInterface $kernel) Constructs a new ModuleInstaller instance. Parameters string $root: The app root. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. \Drupal\Core\DrupalKernelInterface $kernel: The drupal kernel. See also \Drupal\Core\DrupalKernel \Drupal\Core\CoreServiceProvider File core/lib/Drupal/Core/Extension/ModuleInstaller.php, line 61 Class ModuleInstal

FileInterface::getMimeType

public FileInterface::getMimeType() Returns the MIME type of the file. Return value string The MIME type of the file, e.g. image/jpeg or text/xml. File core/modules/file/src/FileInterface.php, line 59 Class FileInterface Defines getter and setter methods for file entity base fields. Namespace Drupal\file Code public function getMimeType();

ContentEntityDeleteForm::submitForm

public ContentEntityDeleteForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden

ModerationHandler::enforceRevisionsEntityFormAlter

public ModerationHandler::enforceRevisionsEntityFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters entity forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandlerInterface::enforceRevisionsEntityFormAlter See also hook_form_alter() File core/modules/content_moderation/s

Locale::config

public static Locale::config() Returns the locale configuration manager service. Use the locale config manager service for creating locale-wrapped typed configuration objects. Return value \Drupal\locale\LocaleConfigManager See also \Drupal\Core\TypedData\TypedDataManager::create() File core/modules/locale/src/Locale.php, line 20 Class Locale Static service container wrapper for locale. Namespace Drupal\locale Code public static function config() { return \Drupal::service('locale.c

TransliterationInterface::removeDiacritics

public TransliterationInterface::removeDiacritics($string) Removes diacritics (accents) from certain letters. This only applies to certain letters: Accented Latin characters like a-with-acute-accent, in the UTF-8 character range of 0xE0 to 0xE6 and 01CD to 024F. Replacements that would result in the string changing length are excluded, as well as characters that are not accented US-ASCII letters. Parameters string $string: The string holding diacritics. Return value string $string with accent

MenuLinkBase::getCacheContexts

public MenuLinkBase::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache ID.