Loading core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ abstract class BlockContentResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['block_content']; protected static $modules = ['block_content', 'content_translation']; /** * {@inheritdoc} Loading core/modules/content_translation/content_translation.link_relation_types.yml 0 → 100644 +14 −0 Original line number Diff line number Diff line # Content Translation extension relation types. # See https://tools.ietf.org/html/rfc5988#section-4.2. drupal:content-translation-overview: uri: https://drupal.org/link-relations/drupal-content-translation-overview description: A page where translations of a resource can be viewed. drupal:content-translation-add: uri: https://drupal.org/link-relations/drupal-content-translation-add description: A page where a translation of a resource can be created. drupal:content-translation-edit: uri: https://drupal.org/link-relations/drupal-content-translation-edit description: A page where a translation of a resource can be edited. drupal:content-translation-delete: uri: https://drupal.org/link-relations/drupal-content-translation-delete description: A page where a translation of a resource can be deleted. core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php +12 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ abstract class MediaResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['media']; protected static $modules = ['content_translation', 'media']; /** * {@inheritdoc} Loading Loading @@ -309,6 +309,17 @@ protected function getExpectedUnauthorizedAccessMessage($method) { } } /** * {@inheritdoc} */ protected function getExpectedCacheContexts() { return [ 'languages:language_interface', 'url.site', 'user.permissions', ]; } /** * {@inheritdoc} */ Loading core/modules/menu_link_content/tests/src/Functional/Rest/MenuLinkContentResourceTestBase.php +12 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ abstract class MenuLinkContentResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['menu_link_content']; protected static $modules = ['content_translation', 'menu_link_content']; /** * {@inheritdoc} Loading Loading @@ -231,4 +231,15 @@ protected function getExpectedUnauthorizedAccessMessage($method) { } } /** * {@inheritdoc} */ protected function getExpectedCacheContexts() { return [ 'languages:language_interface', 'url.site', 'user.permissions', ]; } } core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php +12 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ abstract class NodeResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['node', 'path']; protected static $modules = ['content_translation', 'node', 'path']; /** * {@inheritdoc} Loading Loading @@ -222,6 +222,17 @@ protected function getExpectedUnauthorizedAccessMessage($method) { return parent::getExpectedUnauthorizedAccessMessage($method); } /** * {@inheritdoc} */ protected function getExpectedCacheContexts() { return [ 'languages:language_interface', 'url.site', 'user.permissions', ]; } /** * Tests PATCHing a node's path with and without 'create url aliases'. * Loading Loading
core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ abstract class BlockContentResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['block_content']; protected static $modules = ['block_content', 'content_translation']; /** * {@inheritdoc} Loading
core/modules/content_translation/content_translation.link_relation_types.yml 0 → 100644 +14 −0 Original line number Diff line number Diff line # Content Translation extension relation types. # See https://tools.ietf.org/html/rfc5988#section-4.2. drupal:content-translation-overview: uri: https://drupal.org/link-relations/drupal-content-translation-overview description: A page where translations of a resource can be viewed. drupal:content-translation-add: uri: https://drupal.org/link-relations/drupal-content-translation-add description: A page where a translation of a resource can be created. drupal:content-translation-edit: uri: https://drupal.org/link-relations/drupal-content-translation-edit description: A page where a translation of a resource can be edited. drupal:content-translation-delete: uri: https://drupal.org/link-relations/drupal-content-translation-delete description: A page where a translation of a resource can be deleted.
core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php +12 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ abstract class MediaResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['media']; protected static $modules = ['content_translation', 'media']; /** * {@inheritdoc} Loading Loading @@ -309,6 +309,17 @@ protected function getExpectedUnauthorizedAccessMessage($method) { } } /** * {@inheritdoc} */ protected function getExpectedCacheContexts() { return [ 'languages:language_interface', 'url.site', 'user.permissions', ]; } /** * {@inheritdoc} */ Loading
core/modules/menu_link_content/tests/src/Functional/Rest/MenuLinkContentResourceTestBase.php +12 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ abstract class MenuLinkContentResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['menu_link_content']; protected static $modules = ['content_translation', 'menu_link_content']; /** * {@inheritdoc} Loading Loading @@ -231,4 +231,15 @@ protected function getExpectedUnauthorizedAccessMessage($method) { } } /** * {@inheritdoc} */ protected function getExpectedCacheContexts() { return [ 'languages:language_interface', 'url.site', 'user.permissions', ]; } }
core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php +12 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ abstract class NodeResourceTestBase extends EntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['node', 'path']; protected static $modules = ['content_translation', 'node', 'path']; /** * {@inheritdoc} Loading Loading @@ -222,6 +222,17 @@ protected function getExpectedUnauthorizedAccessMessage($method) { return parent::getExpectedUnauthorizedAccessMessage($method); } /** * {@inheritdoc} */ protected function getExpectedCacheContexts() { return [ 'languages:language_interface', 'url.site', 'user.permissions', ]; } /** * Tests PATCHing a node's path with and without 'create url aliases'. * Loading