Loading gutenberg.services.yml +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ services: - { name: gutenberg_block_processor, priority: 50 } gutenberg.blocks_renderer: class: Drupal\gutenberg\BlocksRendererHelper arguments: ['@renderer', '@plugin.manager.block', '@current_user', '@context.repository', '@context.handler', '@title_resolver', '@logger.channel.gutenberg', '@request_stack', '@current_route_match'] arguments: ['@renderer', '@plugin.manager.block', '@current_user', '@context.repository', '@context.handler', '@title_resolver', '@logger.channel.gutenberg'] gutenberg.tiny_color: class: Drupal\gutenberg\TinyColor arguments: [] Loading Loading @@ -87,7 +87,7 @@ services: arguments: ['@module_handler'] gutenberg.media_service: class: Drupal\gutenberg\Service\MediaService arguments: ['@gutenberg.media_type.guesser', '@entity_type.manager', '@gutenberg.media_type.persistence_manager', '@gutenberg.entity_type.data_provider_manager', '@module_handler', '@gutenberg.media_uploader', '@renderer', '@entity_type.bundle.info', '@gutenberg.media_entity.renderer', '@database', '@entity_display.repository', '@current_user', '@gutenberg.media_library.ui_builder'] arguments: ['@gutenberg.media_type.guesser', '@entity_type.manager', '@gutenberg.media_type.persistence_manager', '@gutenberg.entity_type.data_provider_manager', '@module_handler', '@gutenberg.media_uploader', '@renderer', '@entity_type.bundle.info', '@gutenberg.media_entity.renderer', '@database', '@entity_display.repository'] gutenberg.media_library.ui_builder: class: Drupal\gutenberg\GutenbergMediaLibraryUiBuilder arguments: ['@entity_type.manager', '@request_stack', '@views.executable', '@form_builder', '@?media_library.opener_resolver'] Loading src/Ajax/UpdateMediaEntitiesCommand.php +1 −2 Original line number Diff line number Diff line Loading @@ -7,8 +7,7 @@ use Drupal\Core\Ajax\CommandInterface; /** * Provides an AJAX command for reloading the media block after editing. * * This command is implemented in * Drupal.AjaxCommands.prototype.gutenbergUpdateMediaEntities. * This command is implemented in Drupal.AjaxCommands.prototype.gutenbergUpdateMediaEntities. */ class UpdateMediaEntitiesCommand implements CommandInterface { Loading src/BlockProcessor/DuotoneProcessor.php +1 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,7 @@ class DuotoneProcessor implements GutenbergBlockProcessorInterface { ]; foreach ($duotone_colors as $color_str) { $color = $this->tinyColor->stringToRgb($color_str); $color = $this->tinyColor->string_to_rgb($color_str); $duotone_values['r'][] = $color['r'] / 255; $duotone_values['g'][] = $color['g'] / 255; Loading src/BlockProcessor/OEmbedProcessor.php +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class OEmbedProcessor extends ConfigurableProcessorBase { $url = $block_attributes['url'] ?? ''; if (!$url) { return; } }; // Try and check against the cache as too many requests might lead to // the site being blacklisted. Loading src/BlockProcessor/ReusableBlockProcessor.php +2 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\gutenberg\BlockProcessor; use Drupal\block_content\Entity\BlockContent; use Drupal\Core\Cache\CacheableMetadata; use Drupal\Core\Cache\RefinableCacheableDependencyInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; Loading Loading @@ -67,7 +68,7 @@ class ReusableBlockProcessor implements GutenbergBlockProcessorInterface { } $bid = $block_attributes['ref']; $block_entity = $this->entityTypeManager->getStorage('block_content')->load($bid); $block_entity = BlockContent::load($bid); if ($block_entity) { $render = $this Loading Loading
gutenberg.services.yml +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ services: - { name: gutenberg_block_processor, priority: 50 } gutenberg.blocks_renderer: class: Drupal\gutenberg\BlocksRendererHelper arguments: ['@renderer', '@plugin.manager.block', '@current_user', '@context.repository', '@context.handler', '@title_resolver', '@logger.channel.gutenberg', '@request_stack', '@current_route_match'] arguments: ['@renderer', '@plugin.manager.block', '@current_user', '@context.repository', '@context.handler', '@title_resolver', '@logger.channel.gutenberg'] gutenberg.tiny_color: class: Drupal\gutenberg\TinyColor arguments: [] Loading Loading @@ -87,7 +87,7 @@ services: arguments: ['@module_handler'] gutenberg.media_service: class: Drupal\gutenberg\Service\MediaService arguments: ['@gutenberg.media_type.guesser', '@entity_type.manager', '@gutenberg.media_type.persistence_manager', '@gutenberg.entity_type.data_provider_manager', '@module_handler', '@gutenberg.media_uploader', '@renderer', '@entity_type.bundle.info', '@gutenberg.media_entity.renderer', '@database', '@entity_display.repository', '@current_user', '@gutenberg.media_library.ui_builder'] arguments: ['@gutenberg.media_type.guesser', '@entity_type.manager', '@gutenberg.media_type.persistence_manager', '@gutenberg.entity_type.data_provider_manager', '@module_handler', '@gutenberg.media_uploader', '@renderer', '@entity_type.bundle.info', '@gutenberg.media_entity.renderer', '@database', '@entity_display.repository'] gutenberg.media_library.ui_builder: class: Drupal\gutenberg\GutenbergMediaLibraryUiBuilder arguments: ['@entity_type.manager', '@request_stack', '@views.executable', '@form_builder', '@?media_library.opener_resolver'] Loading
src/Ajax/UpdateMediaEntitiesCommand.php +1 −2 Original line number Diff line number Diff line Loading @@ -7,8 +7,7 @@ use Drupal\Core\Ajax\CommandInterface; /** * Provides an AJAX command for reloading the media block after editing. * * This command is implemented in * Drupal.AjaxCommands.prototype.gutenbergUpdateMediaEntities. * This command is implemented in Drupal.AjaxCommands.prototype.gutenbergUpdateMediaEntities. */ class UpdateMediaEntitiesCommand implements CommandInterface { Loading
src/BlockProcessor/DuotoneProcessor.php +1 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,7 @@ class DuotoneProcessor implements GutenbergBlockProcessorInterface { ]; foreach ($duotone_colors as $color_str) { $color = $this->tinyColor->stringToRgb($color_str); $color = $this->tinyColor->string_to_rgb($color_str); $duotone_values['r'][] = $color['r'] / 255; $duotone_values['g'][] = $color['g'] / 255; Loading
src/BlockProcessor/OEmbedProcessor.php +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class OEmbedProcessor extends ConfigurableProcessorBase { $url = $block_attributes['url'] ?? ''; if (!$url) { return; } }; // Try and check against the cache as too many requests might lead to // the site being blacklisted. Loading
src/BlockProcessor/ReusableBlockProcessor.php +2 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\gutenberg\BlockProcessor; use Drupal\block_content\Entity\BlockContent; use Drupal\Core\Cache\CacheableMetadata; use Drupal\Core\Cache\RefinableCacheableDependencyInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; Loading Loading @@ -67,7 +68,7 @@ class ReusableBlockProcessor implements GutenbergBlockProcessorInterface { } $bid = $block_attributes['ref']; $block_entity = $this->entityTypeManager->getStorage('block_content')->load($bid); $block_entity = BlockContent::load($bid); if ($block_entity) { $render = $this Loading