Loading gutenberg.api.php +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ function hook_gutenberg_blocks_alter(array &$js_files_edit, array &$css_files_ed * @see \Drupal\gutenberg\GutenbergMediaLibraryUiBuilder */ function hook_gutenberg_media_library_view_alter(array &$build_ui) { // @todo: provide some example. // @todo provide some example. } /** Loading gutenberg.module +7 −5 Original line number Diff line number Diff line Loading @@ -402,7 +402,7 @@ function gutenberg_form_node_form_alter(&$form, FormStateInterface $form_state) $form['#attached']['drupalSettings']['gutenberg']['template'] = $gutenberg_template; $form['#attached']['drupalSettings']['gutenberg']['template-lock'] = $config->get($node_type . '_template_lock'); /* @var $mapping_fields \Drupal\gutenberg\MappingFieldsHelper */ /** @var \Drupal\gutenberg\MappingFieldsHelper $mapping_fields */ $mapping_fields = \Drupal::service('class_resolver') ->getInstanceFromDefinition(MappingFieldsHelper::class); Loading Loading @@ -688,7 +688,7 @@ function gutenberg_entity_presave($entity) { return; } /* @var $mapping_fields \Drupal\gutenberg\MappingFieldsHelper */ /** @var \Drupal\gutenberg\MappingFieldsHelper $mapping_fields */ $mapping_fields = \Drupal::service('class_resolver') ->getInstanceFromDefinition(MappingFieldsHelper::class); Loading Loading @@ -766,7 +766,9 @@ function gutenberg_element_info_alter(array &$info) { // Add custom processor to eliminate the format if needed. $info['text_format']['#process'][] = '_gutenberg_text_format_processor'; // Fix double-encryption of whitespaces into 
. $info['text_format']['#pre_render'][] = [GutenbergElementInfoAlter::class, 'preRender']; $info['text_format']['#pre_render'][] = [ GutenbergElementInfoAlter::class, 'preRender', ]; } } Loading Loading @@ -966,8 +968,8 @@ function _gutenberg_is_gutenberg_enabled(EntityInterface $entity = NULL) { /* * TODO read from the entity type's third_party_settings instead of a global. * @see menu_ui_form_node_form_alter() * and https://www.sitepoint.com/drupal-8-third-party-settings-and-pseudo-fields/ * @see menu_ui_form_node_form_alter() and * https://www.sitepoint.com/drupal-8-third-party-settings-and-pseudo-fields/ */ $config = \Drupal::service('config.factory')->get('gutenberg.settings'); $node_type = $entity->bundle(); Loading gutenberg.post_update.php +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ function gutenberg_post_update_reusable_block_view_access() { } } /** * Fix youtube and instagram oEmbed processor. */ Loading gutenberg.install +1 −1 File changed.Contains only whitespace changes. Show changes Loading
gutenberg.api.php +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ function hook_gutenberg_blocks_alter(array &$js_files_edit, array &$css_files_ed * @see \Drupal\gutenberg\GutenbergMediaLibraryUiBuilder */ function hook_gutenberg_media_library_view_alter(array &$build_ui) { // @todo: provide some example. // @todo provide some example. } /** Loading
gutenberg.module +7 −5 Original line number Diff line number Diff line Loading @@ -402,7 +402,7 @@ function gutenberg_form_node_form_alter(&$form, FormStateInterface $form_state) $form['#attached']['drupalSettings']['gutenberg']['template'] = $gutenberg_template; $form['#attached']['drupalSettings']['gutenberg']['template-lock'] = $config->get($node_type . '_template_lock'); /* @var $mapping_fields \Drupal\gutenberg\MappingFieldsHelper */ /** @var \Drupal\gutenberg\MappingFieldsHelper $mapping_fields */ $mapping_fields = \Drupal::service('class_resolver') ->getInstanceFromDefinition(MappingFieldsHelper::class); Loading Loading @@ -688,7 +688,7 @@ function gutenberg_entity_presave($entity) { return; } /* @var $mapping_fields \Drupal\gutenberg\MappingFieldsHelper */ /** @var \Drupal\gutenberg\MappingFieldsHelper $mapping_fields */ $mapping_fields = \Drupal::service('class_resolver') ->getInstanceFromDefinition(MappingFieldsHelper::class); Loading Loading @@ -766,7 +766,9 @@ function gutenberg_element_info_alter(array &$info) { // Add custom processor to eliminate the format if needed. $info['text_format']['#process'][] = '_gutenberg_text_format_processor'; // Fix double-encryption of whitespaces into 
. $info['text_format']['#pre_render'][] = [GutenbergElementInfoAlter::class, 'preRender']; $info['text_format']['#pre_render'][] = [ GutenbergElementInfoAlter::class, 'preRender', ]; } } Loading Loading @@ -966,8 +968,8 @@ function _gutenberg_is_gutenberg_enabled(EntityInterface $entity = NULL) { /* * TODO read from the entity type's third_party_settings instead of a global. * @see menu_ui_form_node_form_alter() * and https://www.sitepoint.com/drupal-8-third-party-settings-and-pseudo-fields/ * @see menu_ui_form_node_form_alter() and * https://www.sitepoint.com/drupal-8-third-party-settings-and-pseudo-fields/ */ $config = \Drupal::service('config.factory')->get('gutenberg.settings'); $node_type = $entity->bundle(); Loading
gutenberg.post_update.php +0 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ function gutenberg_post_update_reusable_block_view_access() { } } /** * Fix youtube and instagram oEmbed processor. */ Loading