You are here

protected function ClassUtilsTrait::bundleLabel in Scheduled Updates 8

2 calls to ClassUtilsTrait::bundleLabel()
ClassUtilsTrait::targetTypeBundleLabel in src/ClassUtilsTrait.php
IndependentUpdateRunner::buildConfigurationForm in src/Plugin/UpdateRunner/IndependentUpdateRunner.php
Form constructor.

File

src/ClassUtilsTrait.php, line 109
Contains \Drupal\scheduled_updates\ClassUtilsTrait.

Class

ClassUtilsTrait
Trait for Class related functions.

Namespace

Drupal\scheduled_updates

Code

protected function bundleLabel($type_id) {
  return $this
    ->entityTypeManager()
    ->getDefinition($type_id)
    ->getBundleLabel();
}