You are here

public function Base::getClassDirectory in Openlayers 7.3

Returns the path to the plugin directory.

Return value

string The path to the plugin directory of the class.

Overrides ObjectInterface::getClassDirectory

2 calls to Base::getClassDirectory()
Base::attached in src/Types/Base.php
Returns a list of attachments for building the render array.
GeoJSON::attached in src/Plugin/Source/GeoJSON/GeoJSON.php
Returns a list of attachments for building the render array.

File

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

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

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