public function Base::getMachineName in Openlayers 7.3
Return the unique machine name of the object.
Return value
string The unique machine name of this object.
Overrides ObjectInterface::getMachineName
7 calls to Base::getMachineName()
- Base::getId in src/
Types/ Base.php - Return the object unique ID.
- Base::getParents in src/
Types/ Base.php - Returns an array with the maps this object is attached on.
- Error::getMessage in src/
Types/ Error.php - LayerSwitcher::i18nStringsRefresh in src/
Plugin/ Control/ LayerSwitcher/ LayerSwitcher.php - Refresh string translations.
- LayerSwitcher::preBuild in src/
Plugin/ Control/ LayerSwitcher/ LayerSwitcher.php - Invoked before an objects render array is built.
File
- src/
Types/ Base.php, line 100 - Class Object.
Class
- Base
- Class Base.
Namespace
Drupal\openlayers\TypesCode
public function getMachineName() {
$configuration = $this
->getConfiguration();
if (isset($configuration['machine_name'])) {
return check_plain($configuration['machine_name']);
}
else {
return 'undefined';
}
}