_field_create_entity_from_ids

_field_create_entity_from_ids($ids) Assembles a partial entity structure with initial IDs. Parameters object $ids: An object with the properties entity_type (required), entity_id (required), revision_id (optional) and bundle (optional). Return value \Drupal\Core\Entity\EntityInterface An entity, initialized with the provided IDs. File core/modules/field/field.module, line 285 Attach custom data fields to Drupal entities. Code function _field_create_entity_from_ids($ids) { $id_properties =

_editor_record_file_usage

_editor_record_file_usage(array $uuids, EntityInterface $entity) Records file usage of files referenced by formatted text fields. Every referenced file that does not yet have the FILE_STATUS_PERMANENT state, will be given that state. Parameters array $uuids: An array of file entity UUIDs. EntityInterface $entity: An entity whose fields to inspect for file references. File core/modules/editor/editor.module, line 437 Adds bindings for client-side "text editors" to text formats. Code function _

_editor_parse_file_uuids

_editor_parse_file_uuids($text) Parse an HTML snippet for any linked file with data-entity-uuid attributes. Parameters string $text: The partial (X)HTML snippet to load. Invalid markup will be corrected on import. Return value array An array of all found UUIDs. File core/modules/editor/editor.module, line 600 Adds bindings for client-side "text editors" to text formats. Code function _editor_parse_file_uuids($text) { $dom = Html::load($text); $xpath = new \DOMXPath($dom); $uuids = arr

_editor_get_formatted_text_fields

_editor_get_formatted_text_fields(FieldableEntityInterface $entity) Determines the formatted text fields on an entity. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: An entity whose fields to analyze. Return value array The names of the fields on this entity that support formatted text. File core/modules/editor/editor.module, line 578 Adds bindings for client-side "text editors" to text formats. Code function _editor_get_formatted_text_fields(FieldableEntityInterface $enti

_editor_get_file_uuids_by_field

_editor_get_file_uuids_by_field(EntityInterface $entity) Finds all files referenced (data-entity-uuid) by formatted text fields. Parameters EntityInterface $entity: An entity whose fields to analyze. Return value array An array of file entity UUIDs. File core/modules/editor/editor.module, line 551 Adds bindings for client-side "text editors" to text formats. Code function _editor_get_file_uuids_by_field(EntityInterface $entity) { $uuids = array(); $formatted_text_fields = _editor_get_f

_editor_delete_file_usage

_editor_delete_file_usage(array $uuids, EntityInterface $entity, $count) Deletes file usage of files referenced by formatted text fields. Parameters array $uuids: An array of file entity UUIDs. EntityInterface $entity: An entity whose fields to inspect for file references. $count: The number of references to delete. Should be 1 when deleting a single revision and 0 when deleting an entity entirely. See also \Drupal\file\FileUsage\FileUsageInterface::delete() File core/modules/editor/editor.mo

_drupal_shutdown_function_handle_exception

_drupal_shutdown_function_handle_exception($exception) Displays and logs any errors that may happen during shutdown. Parameters \Exception|\Throwable $exception: The exception object that was thrown. See also _drupal_shutdown_function() File core/includes/bootstrap.inc, line 1009 Functions that need to be loaded on every Drupal request. Code function _drupal_shutdown_function_handle_exception($exception) { // If using PHP-FPM then fastcgi_finish_request() will have been fired // prevent

_drupal_shutdown_function

_drupal_shutdown_function() Executes registered shutdown functions. File core/includes/bootstrap.inc, line 978 Functions that need to be loaded on every Drupal request. Code function _drupal_shutdown_function() { $callbacks = &drupal_register_shutdown_function(); // Set the CWD to DRUPAL_ROOT as it is not guaranteed to be the same as it // was in the normal context of execution. chdir(DRUPAL_ROOT); try { while (list($key, $callback) = each($callbacks)) { call_user_fu

_drupal_schema_initialize

_drupal_schema_initialize(&$schema, $module, $remove_descriptions = TRUE) Fills in required default values for table definitions from hook_schema(). Parameters array $schema: The schema definition array as it was returned by the module's hook_schema(). string $module: The module for which hook_schema() was invoked. bool $remove_descriptions: (optional) Whether to additionally remove 'description' keys of all tables and fields to improve performance of serialize() and unserialize(). Default

_drupal_rewrite_settings_is_simple

_drupal_rewrite_settings_is_simple($type, $value) Helper for drupal_rewrite_settings(). Checks whether this token represents a scalar or NULL. Parameters int $type: The token type. string $value: The value of the token. Return value bool TRUE if this token represents a scalar or NULL. See also token_name() File core/includes/install.inc, line 374 API functions for installing modules and themes. Code function _drupal_rewrite_settings_is_simple($type, $value) { $is_integer = $type == T_LNU