You are here

public static function EntityLegalDocumentVersion::getDefaultName in Entity Legal 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Entity/EntityLegalDocumentVersion.php \Drupal\entity_legal\Entity\EntityLegalDocumentVersion::getDefaultName()
  2. 4.0.x src/Entity/EntityLegalDocumentVersion.php \Drupal\entity_legal\Entity\EntityLegalDocumentVersion::getDefaultName()

Get the default document version name value.

Parameters

EntityLegalDocumentVersionInterface $entity: The Entity legal document version entity.

Return value

string The default document version name.

Overrides EntityLegalDocumentVersionInterface::getDefaultName

File

src/Entity/EntityLegalDocumentVersion.php, line 142

Class

EntityLegalDocumentVersion
Defines the entity legal document version entity.

Namespace

Drupal\entity_legal\Entity

Code

public static function getDefaultName(EntityLegalDocumentVersionInterface $entity) {
  return $entity
    ->bundle() . '_' . time();
}