Loading .editorconfig 0 → 100644 +21 −0 Original line number Diff line number Diff line # Drupal editor configuration normalization # @see http://editorconfig.org/ # This is the top-most .editorconfig file; do not search in parent directories. root = true # All files. [*] end_of_line = LF indent_style = space indent_size = 2 charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true ij_any_catch_on_new_line = true [composer.json] indent_size = 4 [*.md] max_line_length = 120 src/Plugin/ParagraphsPastePlugin/OEmbedUrl.php +5 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,11 @@ class OEmbedUrl extends ParagraphsPastePluginBase { */ public static function isApplicable($input, array $definition) { $input = strip_tags($input); if (!\Drupal::service('path.validator')->isValid($input)) { return FALSE; } /** @var \Drupal\media\OEmbed\UrlResolverInterface $resolver */ $resolver = \Drupal::service('media.oembed.url_resolver'); Loading Loading
.editorconfig 0 → 100644 +21 −0 Original line number Diff line number Diff line # Drupal editor configuration normalization # @see http://editorconfig.org/ # This is the top-most .editorconfig file; do not search in parent directories. root = true # All files. [*] end_of_line = LF indent_style = space indent_size = 2 charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true ij_any_catch_on_new_line = true [composer.json] indent_size = 4 [*.md] max_line_length = 120
src/Plugin/ParagraphsPastePlugin/OEmbedUrl.php +5 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,11 @@ class OEmbedUrl extends ParagraphsPastePluginBase { */ public static function isApplicable($input, array $definition) { $input = strip_tags($input); if (!\Drupal::service('path.validator')->isValid($input)) { return FALSE; } /** @var \Drupal\media\OEmbed\UrlResolverInterface $resolver */ $resolver = \Drupal::service('media.oembed.url_resolver'); Loading