You are here

public function OrganizationType::shouldCreateNewRevision in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/Entity/OrganizationType.php \Drupal\crm_core_contact\Entity\OrganizationType::shouldCreateNewRevision()
  2. 8.2 modules/crm_core_contact/src/Entity/OrganizationType.php \Drupal\crm_core_contact\Entity\OrganizationType::shouldCreateNewRevision()

Gets whether a new revision should be created by default.

Return value

bool TRUE if a new revision should be created by default.

Overrides RevisionableEntityBundleInterface::shouldCreateNewRevision

File

modules/crm_core_contact/src/Entity/OrganizationType.php, line 157

Class

OrganizationType
CRM Organization Type Entity Class.

Namespace

Drupal\crm_core_contact\Entity

Code

public function shouldCreateNewRevision() {
  return $this->new_revision;
}