Issue #2897130 by timmillwood, amateescu, Sam152, xjm: Mark workflows module as stable

8.5.x
xjm 2017-09-06 11:02:08 -05:00
parent 4207b307d3
commit 34697034b7
13 changed files with 7 additions and 46 deletions

View File

@ -17,10 +17,6 @@ use Drupal\Component\Annotation\Plugin;
* @see plugin_api * @see plugin_api
* *
* @Annotation * @Annotation
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
class WorkflowType extends Plugin { class WorkflowType extends Plugin {

View File

@ -56,10 +56,6 @@ use Drupal\workflows\WorkflowInterface;
* "type_settings", * "type_settings",
* }, * },
* ) * )
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
class Workflow extends ConfigEntityBase implements WorkflowInterface, EntityWithPluginCollectionInterface { class Workflow extends ConfigEntityBase implements WorkflowInterface, EntityWithPluginCollectionInterface {

View File

@ -14,10 +14,6 @@ use Drupal\workflows\WorkflowTypeInterface;
* A base class for Workflow type plugins. * A base class for Workflow type plugins.
* *
* @see \Drupal\workflows\Annotation\WorkflowType * @see \Drupal\workflows\Annotation\WorkflowType
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
abstract class WorkflowTypeBase extends PluginBase implements WorkflowTypeInterface { abstract class WorkflowTypeBase extends PluginBase implements WorkflowTypeInterface {

View File

@ -4,10 +4,6 @@ namespace Drupal\workflows;
/** /**
* A value object representing a workflow state. * A value object representing a workflow state.
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
class State implements StateInterface { class State implements StateInterface {

View File

@ -4,10 +4,6 @@ namespace Drupal\workflows;
/** /**
* An interface for state value objects. * An interface for state value objects.
*
* @internal
* The StateInterface should only be used by Workflows and Content Moderation.
* @todo Revisit the need for this in https://www.drupal.org/node/2902309.
*/ */
interface StateInterface { interface StateInterface {

View File

@ -4,10 +4,6 @@ namespace Drupal\workflows;
/** /**
* A transition value object that describes the transition between states. * A transition value object that describes the transition between states.
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
class Transition implements TransitionInterface { class Transition implements TransitionInterface {

View File

@ -4,11 +4,6 @@ namespace Drupal\workflows;
/** /**
* A transition value object that describes the transition between two states. * A transition value object that describes the transition between two states.
*
* @internal
* The TransitionInterface should only be used by Workflows and Content
* Moderation.
* @todo Revisit the need for this in https://www.drupal.org/node/2902309.
*/ */
interface TransitionInterface { interface TransitionInterface {

View File

@ -15,10 +15,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* Access controller for the Workflow entity. * Access controller for the Workflow entity.
* *
* @see \Drupal\workflows\Entity\Workflow. * @see \Drupal\workflows\Entity\Workflow.
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
class WorkflowAccessControlHandler extends EntityAccessControlHandler implements EntityHandlerInterface { class WorkflowAccessControlHandler extends EntityAccessControlHandler implements EntityHandlerInterface {

View File

@ -6,10 +6,6 @@ use Drupal\Core\Config\Entity\ConfigEntityInterface;
/** /**
* Provides an interface for defining workflow entities. * Provides an interface for defining workflow entities.
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
interface WorkflowInterface extends ConfigEntityInterface { interface WorkflowInterface extends ConfigEntityInterface {

View File

@ -8,10 +8,6 @@ use Drupal\Core\Plugin\PluginWithFormsInterface;
/** /**
* An interface for Workflow type plugins. * An interface for Workflow type plugins.
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
interface WorkflowTypeInterface extends PluginWithFormsInterface, DerivativeInspectionInterface, ConfigurablePluginInterface { interface WorkflowTypeInterface extends PluginWithFormsInterface, DerivativeInspectionInterface, ConfigurablePluginInterface {

View File

@ -13,10 +13,6 @@ use Drupal\workflows\Annotation\WorkflowType;
* @see \Drupal\workflows\Annotation\WorkflowType * @see \Drupal\workflows\Annotation\WorkflowType
* @see \Drupal\workflows\WorkflowTypeInterface * @see \Drupal\workflows\WorkflowTypeInterface
* @see plugin_api * @see plugin_api
*
* @internal
* The workflow system is currently experimental and should only be leveraged
* by experimental modules and development releases of contributed modules.
*/ */
class WorkflowTypeManager extends DefaultPluginManager { class WorkflowTypeManager extends DefaultPluginManager {

View File

@ -3,5 +3,5 @@ type: module
description: 'Provides UI and API for managing workflows. This module can be used with the Content moderation module to add highly customizable workflows to content.' description: 'Provides UI and API for managing workflows. This module can be used with the Content moderation module to add highly customizable workflows to content.'
version: VERSION version: VERSION
core: 8.x core: 8.x
package: Core (Experimental) package: Core
configure: entity.workflow.collection configure: entity.workflow.collection

View File

@ -16,6 +16,12 @@ function workflows_help($route_name, RouteMatchInterface $route_match) {
$output = ''; $output = '';
$output .= '<h3>' . t('About') . '</h3>'; $output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Workflows module provides a UI and an API for creating workflows content. This lets site admins define workflows and their states, and then define transitions between those states. For more information, see the <a href=":workflow">online documentation for the Workflows module</a>.', [':workflow' => 'https://www.drupal.org/documentation/modules/workflows']) . '</p>'; $output .= '<p>' . t('The Workflows module provides a UI and an API for creating workflows content. This lets site admins define workflows and their states, and then define transitions between those states. For more information, see the <a href=":workflow">online documentation for the Workflows module</a>.', [':workflow' => 'https://www.drupal.org/documentation/modules/workflows']) . '</p>';
$output .= '<h4>' . t('Workflow') . '</h4>';
$output .= '<p>' . t('A collection of states and transitions between those states.') . '</p>';
$output .= '<h4>' . t('State') . '</h4>';
$output .= '<p>' . t('A particular condition that something is in at a specific time. The usage of the state is determined by a module that harnesses the Workflows module. For example, Content Moderation allows a state to be used for moderation of content by assigning a given state to a content item.') . '</p>';
$output .= '<h4>' . t('Transition') . '</h4>';
$output .= '<p>' . t('The process of changing from one state to another. A transition can occur from multiple states, but only to one state.') . '</p>';
return $output; return $output;
} }
} }