You are here

public function Base::getName in Openlayers 7.3

Return the human name of the object.

Return value

string

Overrides ObjectInterface::getName

File

src/Types/Base.php, line 113
Class Object.

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

public function getName() {
  $configuration = $this
    ->getConfiguration();
  if (isset($configuration['name'])) {
    return check_plain($configuration['name']);
  }
  else {
    return 'undefined';
  }
}