LocalStream::stream_truncate

public LocalStream::stream_truncate($new_size) Truncate stream. Will respond to truncation; e.g., through ftruncate(). Parameters int $new_size: The new size. Return value bool TRUE on success, FALSE otherwise. Overrides PhpStreamWrapperInterface::stream_truncate File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 360 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function stream_truncate($new_si

EntityDefinitionUpdateManager::getChangeList

protected EntityDefinitionUpdateManager::getChangeList() Gets a list of changes to entity type and field storage definitions. Return value array An associative array keyed by entity type id of change descriptors. Every entry is an associative array with the following optional keys: entity_type: a scalar having only the DEFINITION_UPDATED value. field_storage_definitions: an associative array keyed by field name of scalars having one value among: DEFINITION_CREATED DEFINITION_UPDATED DEFINITI

AjaxResponse

JSON response object for AJAX requests. Hierarchy class \Symfony\Component\HttpFoundation\JsonResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Core\Ajax\AjaxResponse implements AttachmentsInterface uses AttachmentsTrait Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 15 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description AjaxResponse::$commands protected property The

LocaleEvents::SAVE_TRANSLATION

The name of the event fired when saving a translated string. This event allows you to perform custom actions whenever a translated string is saved. See also \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag Related topics Events Overview of event dispatch and subscribing File core/modules/locale/src/LocaleEvents.php, line 22 Class LocaleEvents Defines events for locale translation. Namespace Drupal\locale Code const SAVE_TRANSLATION = 'locale.save_translation';

TranslateEditForm::getFormId

public TranslateEditForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/locale/src/Form/TranslateEditForm.php, line 17 Class TranslateEditForm Defines a translation edit form. Namespace Drupal\locale\Form Code public function getFormId() { return 'locale_translate_edit_form'; }

BlockBase::getConfiguration

public BlockBase::getConfiguration() Gets this plugin's configuration. Return value array An array of this plugin's configuration. Overrides ConfigurablePluginInterface::getConfiguration File core/lib/Drupal/Core/Block/BlockBase.php, line 64 Class BlockBase Defines a base block implementation that most blocks plugins will extend. Namespace Drupal\Core\Block Code public function getConfiguration() { return $this->configuration; }

EntityAccessControlHandler::$accessCache

Stores calculated access check results. Type: array File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 21 Class EntityAccessControlHandler Defines a default implementation for entity access control handler. Namespace Drupal\Core\Entity Code protected $accessCache = array();

ModerationStateTransitionListBuilder::render

public ModerationStateTransitionListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides DraggableListBuilder::render File core/modules/content_moderation/src/ModerationStateTransitionListBuilder.php, line 94 Class ModerationStateTransitionListBuilder Provides a listing of Moderation state transition entities. Namespace Drupal\content_moderation Code public function render() { $build = p

ConfigEvents::IMPORT_VALIDATE

Name of the event fired when validating imported configuration. This event allows modules to perform additional validation operations when configuration is being imported. The event listener method receives a \Drupal\Core\Config\ConfigImporterEvent instance. See also \Drupal\Core\Config\ConfigImporterEvent \Drupal\Core\Config\ConfigImporter::validate(). \Drupal\Core\EventSubscriber\ConfigImportSubscriber::onConfigImporterValidate(). Related topics Events Overview of event dispatch and subscrib

SearchPageRepository::sortSearchPages

public SearchPageRepository::sortSearchPages($search_pages) Sorts a list of search pages. Parameters \Drupal\search\SearchPageInterface[] $search_pages: The unsorted list of search pages. Return value \Drupal\search\SearchPageInterface[] The sorted list of search pages. Overrides SearchPageRepositoryInterface::sortSearchPages File core/modules/search/src/SearchPageRepository.php, line 106 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupa