You are here

public function DataTypePluginBase::label in Search API 8

Returns the label of the data type.

Return value

string The administration label.

Overrides DataTypeInterface::label

File

src/DataType/DataTypePluginBase.php, line 76

Class

DataTypePluginBase
Defines a base class from which other data type classes may extend.

Namespace

Drupal\search_api\DataType

Code

public function label() {
  $plugin_definition = $this
    ->getPluginDefinition();
  return $plugin_definition['label'];
}