traitCreateContentType example

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

    return $note_type;
  }

  /** * {@inheritdoc} */
  protected function assertDefaultRevision(EntityInterface $entity, int $revision_id$published = TRUE): void {
    // In the context of a workspace, the default revision ID is always the     // latest workspace-specific revision, so we need to adjust the expectation
Home | Imprint | This part of the site doesn't use cookies.