You are here

public function License::label in Commerce License 8.2

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides ContentEntityBase::label

File

src/Entity/License.php, line 76

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function label() {

  // Get the label for the license from the plugin.
  return $this
    ->getTypePlugin()
    ->buildLabel($this);
}