You are here

public function AnnotatedPluginBase::getWeight in Markdown 8.2

Returns the weight of the plugin (used for sorting).

Return value

int The plugin weight.

Overrides AnnotatedPluginInterface::getWeight

1 call to AnnotatedPluginBase::getWeight()
AnnotatedPluginBase::getConfiguration in src/Plugin/Markdown/AnnotatedPluginBase.php
Gets this plugin's configuration.

File

src/Plugin/Markdown/AnnotatedPluginBase.php, line 111

Class

AnnotatedPluginBase
Base class for annotated plugins.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function getWeight() {
  return isset($this->configuration['weight']) ? (int) $this->configuration['weight'] : $this->pluginDefinition->weight;
}