traitAddEntityTypeAndBundleToWorkflow example

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);
    });
  }

  /** * {@inheritdoc} */
  protected function createContentType(array $values = []) {
    $note_type = $this->workspaceManager->executeOutsideWorkspace(function D) use ($values) {
      return $this->traitCreateContentType($values);
    });

    
Home | Imprint | This part of the site doesn't use cookies.