datetime-form.html.twig

Default theme implementation of a datetime form element. Available variables: attributes: HTML attributes for the datetime form element. content: The datelist form element to be output. See also template_preprocess_datetime_form() File core/modules/system/templates/datetime-form.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

ContentEntityBase::setDefaultLangcode

protected ContentEntityBase::setDefaultLangcode() Populates the local cache for the default language code. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 621 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code protected function setDefaultLangcode() { // Get the language code if the property exists. // Try to read the value directly from the list of entity keys which got // initialized in _

FilterUninstallValidator

Prevents uninstallation of modules providing used filter plugins. Hierarchy class \Drupal\filter\FilterUninstallValidator implements ModuleUninstallValidatorInterface uses StringTranslationTrait File core/modules/filter/src/FilterUninstallValidator.php, line 14 Namespace Drupal\filter Members Name Modifiers Type Description FilterUninstallValidator::$filterManager protected property The filter plugin manager. FilterUninstallValidator::$filterStorage protected prope

ckeditor_ckeditor_css_alter

ckeditor_ckeditor_css_alter(array &$css, Editor $editor) Implements hook_ckeditor_css_alter(). File core/modules/ckeditor/ckeditor.module, line 57 Provides integration with the CKEditor WYSIWYG editor. Code function ckeditor_ckeditor_css_alter(array &$css, Editor $editor) { if (!$editor->hasAssociatedFilterFormat()) { return; } // Add the filter caption CSS if the text format associated with this text // editor uses the filter_caption filter. This is used by the includ

BlockBase::label

public BlockBase::label() Returns the user-facing block label. @todo Provide other specific label-related methods in https://www.drupal.org/node/2025649. Return value string The block label. Overrides BlockPluginInterface::label File core/lib/Drupal/Core/Block/BlockBase.php, line 42 Class BlockBase Defines a base block implementation that most blocks plugins will extend. Namespace Drupal\Core\Block Code public function label() { if (!empty($this->configuration['label'])) { re

RouteProcessorCsrf::processOutbound

public RouteProcessorCsrf::processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) Processes the outbound route. Parameters string $route_name: The route name. \Symfony\Component\Routing\Route $route: The outbound route to process. array $parameters: An array of parameters to be passed to the route compiler. Passed by reference. \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) Object to collect route processors'

update_is_missing

update_is_missing($module, $number, $update_functions) Determines if a module update is missing or unavailable. Parameters $module: The name of the module. $number: The number of the update within that module. $update_functions: An organized array of update functions, in the format returned by update_get_update_function_list(). This should represent all module updates that are requested to run at the time this function is called. Return value TRUE if the provided module update is not installe

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_

ContentTranslationManagerInterface::getTranslationHandler

public ContentTranslationManagerInterface::getTranslationHandler($entity_type_id) Returns an instance of the Content translation handler. Parameters string $entity_type_id: The type of the entity being translated. Return value \Drupal\content_translation\ContentTranslationHandlerInterface An instance of the content translation handler. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 40 Class ContentTranslationManagerInterface Provides an interface f

HWLDFWordAccumulator::addWords

public HWLDFWordAccumulator::addWords($words, $tag = '') File core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php, line 56 Class HWLDFWordAccumulator @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff\Engine Code public function addWords($words, $tag = '') { if ($tag != $this->tag) { $this->_flushGroup($tag); } foreach ($words as $word) { // new-line should only come as first char of word. if ($word == '') { con