traitCreateEditorialWorkflow example

return parent::createEntity($entity_type_id$moderation_state$create_workflow);
    });

    return $entity;
  }

  /** * {@inheritdoc} */
  protected function createEditorialWorkflow() {
    $workflow = $this->workspaceManager->executeOutsideWorkspace(function D) {
      return $this->traitCreateEditorialWorkflow();
    });

    return $workflow;
  }

  /** * {@inheritdoc} */
  protected function addEntityTypeAndBundleToWorkflow(WorkflowInterface $workflow$entity_type_id$bundle) {
    $this->workspaceManager->executeOutsideWorkspace(function D) use ($workflow$entity_type_id$bundle) {
      $this->traitAddEntityTypeAndBundleToWorkflow($workflow$entity_type_id$bundle);
    });
Home | Imprint | This part of the site doesn't use cookies.