You are here

public function FeaturesBundle::id in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/Entity/FeaturesBundle.php \Drupal\features\Entity\FeaturesBundle::id()

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

src/Entity/FeaturesBundle.php, line 84

Class

FeaturesBundle
Defines a features bundle.

Namespace

Drupal\features\Entity

Code

public function id() {

  // @todo Convert it to $this->id in the long run.
  return $this
    ->getMachineName();
}