You are here

public function OpenlayersLayer::id in Openlayers 8.4

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/OpenlayersLayer.php, line 66

Class

OpenlayersLayer
Defines the Openlayers Layer entity.

Namespace

Drupal\openlayers\Entity

Code

public function id() {
  return $this
    ->get('id');
}