Skip to content
Snippets Groups Projects

Replace call to protected property `id` with function `id()`

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -17,7 +17,7 @@ class SalesforceAuthListBuilder extends ConfigEntityListBuilder {
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\salesforce\SalesforceAuthProviderInterface $plugin */
$plugin = $entity->getPlugin();
$row['default'] = $entity->authManager()->getConfig()?->id == $entity->id()
$row['default'] = $entity->authManager()->getConfig()?->id() == $entity->id()
? $this->t('Default')
: '';
$row['label'] = $entity->label();
Loading