You are here

public function Base::getClassPath in Openlayers 7.3

Returns the path to the class file.

Return value

string The path to the file containing the class definition.

Overrides ObjectInterface::getClassPath

File

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

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

public function getClassPath() {
  $class = explode('\\', $this->pluginDefinition['class']);
  return drupal_get_path('module', $this
    ->getProvider()) . '/src/' . implode('/', array_slice($class, 2)) . '.php';
}