You are here

public function OpenApiGeneratorBase::getLabel in OpenAPI 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/openapi/OpenApiGeneratorBase.php \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase::getLabel()

Get plugin label.

Return value

string Plugin label.

Overrides OpenApiGeneratorInterface::getLabel

File

src/Plugin/openapi/OpenApiGeneratorBase.php, line 176

Class

OpenApiGeneratorBase
Defines base class for OpenApi Generator plugins.

Namespace

Drupal\openapi\Plugin\openapi

Code

public function getLabel() {
  if ($this->label === NULL) {

    // Load value from definition.
    $this->label = $this
      ->get()["label"];
  }
  return $this->label;
}