You are here

public function WebformElementInterface::getLabel in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::getLabel()

Get an element's label (#title or #webform_key).

Parameters

array $element: An element.

Return value

string An element's label (#title or #webform_key).

1 method overrides WebformElementInterface::getLabel()
WebformElementBase::getLabel in src/Plugin/WebformElementBase.php
Get an element's label (#title or #webform_key).

File

src/Plugin/WebformElementInterface.php, line 420

Class

WebformElementInterface
Defines the interface for webform elements.

Namespace

Drupal\webform\Plugin

Code

public function getLabel(array $element);