Skip to content
Snippets Groups Projects
Commit b77f378d authored by catch's avatar catch
Browse files

Issue #2876419 by Sam152, timmillwood, plach: Review content_moderation module...

Issue #2876419 by Sam152, timmillwood, plach: Review content_moderation module and mark code with @internal where necessary
parent 9586b37b
No related branches found
No related tags found
No related merge requests found
Showing
with 23 additions and 0 deletions
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
* *
* Content moderation state entities track the moderation state of other content * Content moderation state entities track the moderation state of other content
* entities. * entities.
*
* @internal
*/ */
interface ContentModerationStateInterface extends ContentEntityInterface, EntityOwnerInterface { interface ContentModerationStateInterface extends ContentEntityInterface, EntityOwnerInterface {
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
/** /**
* Determines whether a route is the "Latest version" tab of a node. * Determines whether a route is the "Latest version" tab of a node.
*
* @internal
*/ */
class ContentPreprocess implements ContainerInjectionInterface { class ContentPreprocess implements ContainerInjectionInterface {
......
...@@ -39,6 +39,11 @@ ...@@ -39,6 +39,11 @@
* "langcode" = "langcode", * "langcode" = "langcode",
* } * }
* ) * )
*
* @internal
* This entity is marked internal because it should not be used directly to
* alter the moderation state of an entity. Instead, the computed
* moderation_state field should be set on the entity directly.
*/ */
class ContentModerationState extends ContentEntityBase implements ContentModerationStateInterface { class ContentModerationState extends ContentEntityBase implements ContentModerationStateInterface {
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
/** /**
* Defines a class for reacting to entity events. * Defines a class for reacting to entity events.
*
* @internal
*/ */
class EntityOperations implements ContainerInjectionInterface { class EntityOperations implements ContainerInjectionInterface {
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
* *
* This class contains primarily bridged hooks for compile-time or * This class contains primarily bridged hooks for compile-time or
* cache-clear-time hooks. Runtime hooks should be placed in EntityOperations. * cache-clear-time hooks. Runtime hooks should be placed in EntityOperations.
*
* @internal
*/ */
class EntityTypeInfo implements ContainerInjectionInterface { class EntityTypeInfo implements ContainerInjectionInterface {
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
/** /**
* Defines a class for dynamic permissions based on transitions. * Defines a class for dynamic permissions based on transitions.
*
* @internal
*/ */
class Permissions { class Permissions {
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
/** /**
* Tracks metadata about revisions across entities. * Tracks metadata about revisions across entities.
*
* @internal
*/ */
class RevisionTracker implements RevisionTrackerInterface { class RevisionTracker implements RevisionTrackerInterface {
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
/** /**
* Tracks metadata about revisions across content entities. * Tracks metadata about revisions across content entities.
*
* @internal
*/ */
interface RevisionTrackerInterface { interface RevisionTrackerInterface {
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* Provides the following routes: * Provides the following routes:
* - The latest version tab, showing the latest revision of an entity, not the * - The latest version tab, showing the latest revision of an entity, not the
* default one. * default one.
*
* @internal
*/ */
class EntityModerationRouteProvider implements EntityRouteProviderInterface, EntityHandlerInterface { class EntityModerationRouteProvider implements EntityRouteProviderInterface, EntityHandlerInterface {
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
/** /**
* Provides the content_moderation views integration. * Provides the content_moderation views integration.
*
* @internal
*/ */
class ViewsData { class ViewsData {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment