// all field entities only for the given baseEntityType.
$ids = \Drupal::
entityQuery('field_config'
) ->
condition('id',
$this->baseEntityType . '.', 'STARTS_WITH'
) ->
execute();
return $this->storage->
loadMultiple($ids);
} /**
* {@inheritdoc}
*/
public function getFilterLabels() { $info = parent::
getFilterLabels();
$bundle =
$this->baseEntityInfo->
getBundleLabel() ?:
$this->
t('Bundle'
);
$bundle =
mb_strtolower($bundle);
$info['placeholder'
] =
$this->
t('Enter field or @bundle',
['@bundle' =>
$bundle]);
$info['description'
] =
$this->
t('Enter a part of the field or @bundle to filter by.',
['@bundle' =>
$bundle]);
return $info;
} /**
* {@inheritdoc}
*/