diff --git a/src/Form/LicenseCreateForm.php b/src/Form/LicenseCreateForm.php index 82ef3e7..31331ca 100755 --- a/src/Form/LicenseCreateForm.php +++ b/src/Form/LicenseCreateForm.php @@ -151,8 +151,7 @@ class LicenseCreateForm extends FormBase implements ContainerInjectionInterface $plugins = array_column($this->pluginManager->getDefinitions(), 'label', 'id'); if (count($plugins) === 1) { /** @var \Drupal\commerce_license\Plugin\Commerce\LicenseType\LicenseTypeInterface $license_type */ - reset($plugins); - $license_type = key($plugins); + $license_type = reset($plugins); error_log($license_type); $form_state->set('license_type', $license_type); $step = 'license'; diff --git a/src/Plugin/views/field/EntityLabel.php b/src/Plugin/views/field/EntityLabel.php index e57bdc8..432fc77 100644 --- a/src/Plugin/views/field/EntityLabel.php +++ b/src/Plugin/views/field/EntityLabel.php @@ -13,6 +13,8 @@ use Drupal\views\ViewExecutable; /** * Field handler to display entity label optionally linked to entity page. * + * @todo Remove this handler once https://www.drupal.org/node/2080745 is done. + * * @ViewsField("commerce_license__entity_label") */ class EntityLabel extends CoreEntityLabel {