Block::$admin_label

The administrative label of the block. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/Block/Annotation/Block.php, line 30 Class Block Defines a Block annotation object. Namespace Drupal\Core\Block\Annotation Code public $admin_label = '';

MemoryBackend::deleteMultiple

public MemoryBackend::deleteMultiple(array $cids) Deletes multiple items from the cache. If the cache items are being deleted because they are no longer "fresh", you may consider using invalidateMultiple() instead. This allows callers to retrieve the invalid items by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters array $cids: An array of cache IDs to delete. Overrides CacheBackendInterface::dele

drupal_validate_utf8

drupal_validate_utf8($text) Checks whether a string is valid UTF-8. All functions designed to filter input should use drupal_validate_utf8 to ensure they operate on valid UTF-8 strings to prevent bypass of the filter. When text containing an invalid UTF-8 lead byte (0xC0 - 0xFF) is presented as UTF-8 to Internet Explorer 6, the program may misinterpret subsequent bytes. When these subsequent bytes are HTML control characters such as quotes or angle brackets, parts of the text that were deemed s

RoleForm::save

public RoleForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the operation pe

CachedStorage::delete

public CachedStorage::delete($name) Deletes a configuration object from the storage. Parameters string $name: The name of a configuration object to delete. Return value bool TRUE on success, FALSE otherwise. Overrides StorageInterface::delete File core/lib/Drupal/Core/Config/CachedStorage.php, line 137 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code public function delete($name) { // If the cache was the first to be deleted, another process might s

DblogFilterForm::buildForm

public DblogFilterForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. 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 array The form structure. Overrides FormInterface::buildForm File core/modules/dblog/src/Form/DblogFilterForm.php, line 23 Class DblogFilterForm Provides the database logging filter form. Namespace Drupal\dblog\Form

AccountForm::flagViolations

protected AccountForm::flagViolations(EntityConstraintViolationListInterface $violations, array $form, FormStateInterface $form_state) Flags violations for the current form. If the entity form customly adds some fields to the form (i.e. without using the form display), it needs to add its fields to array returned by getEditedFieldNames() and overwrite this method in order to show any violations for those fields; e.g.: foreach ($violations->getByField('name') as $violation) { $form_state-&g

ThirdPartySettingsInterface

Interface for configuration entities to store third party information. A third party is a module that needs to store tightly coupled information to the configuration entity. For example, a module alters the node type form can use this to store its configuration so that it will be deployed with the node type. Hierarchy interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterface File core/lib/Drupal/Core/Config/Entity/ThirdPartySettingsInterface.php, line 13 Namespace Drupal\Core\Conf

language.admin.inc

Administration functions for language.module. File core/modules/language/language.admin.inc Functions Name Description template_preprocess_language_content_settings_table Prepares variables for language content settings table templates. template_preprocess_language_negotiation_configure_form Prepares variables for language negotiation configuration form.

comment_cron

comment_cron() Implements hook_cron(). File core/modules/comment/comment.module, line 477 Enables users to comment on published content. Code function comment_cron() { // Store the maximum possible comments per thread (used for node search // ranking by reply count). \Drupal::state()->set('comment.node_comment_statistics_scale', 1.0 / max(1, \Drupal::service('comment.statistics')->getMaximumCount('node'))); }