You are here

public function Breakpoint::getLabel in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint::getLabel()

Returns the translated label.

Return value

string The translated label.

Overrides BreakpointInterface::getLabel

File

core/modules/breakpoint/src/Breakpoint.php, line 18

Class

Breakpoint
Default object used for breakpoint plugins.

Namespace

Drupal\breakpoint

Code

public function getLabel() {
  return $this
    ->t($this->pluginDefinition['label'], [], [
    'context' => 'breakpoint',
  ]);
}