showRevisionUi example

$container->get('datetime.time')
    );
  }

  /** * {@inheritdoc} */
  protected function prepareEntity() {
    parent::prepareEntity();

    // Hide the current revision log message in UI.     if ($this->showRevisionUi() && !$this->entity->isNew() && $this->entity instanceof RevisionLogInterface) {
      $this->entity->setRevisionLogMessage(NULL);
    }
  }

  /** * Returns the bundle entity of the entity, or NULL if there is none. * * @return \Drupal\Core\Entity\EntityInterface|null * The bundle entity. */
  protected function getBundleEntity() {
    
Home | Imprint | This part of the site doesn't use cookies.