function DevelController::fieldInfoPage
Same name in other branches
- 4.x src/Controller/DevelController.php \Drupal\devel\Controller\DevelController::fieldInfoPage()
Builds the fields info overview page.
Return value
array Array of page elements to render.
1 string reference to 'DevelController::fieldInfoPage'
File
-
src/
Controller/ DevelController.php, line 98
Class
- DevelController
- Returns responses for devel module routes.
Namespace
Drupal\devel\ControllerCode
public function fieldInfoPage() {
$fields = $this->entityTypeManager
->getStorage('field_storage_config')
->loadMultiple();
ksort($fields);
$output['fields'] = $this->dumper
->exportAsRenderable($fields, $this->t('Fields'));
$field_instances = $this->entityTypeManager
->getStorage('field_config')
->loadMultiple();
ksort($field_instances);
$output['instances'] = $this->dumper
->exportAsRenderable($field_instances, $this->t('Instances'));
$bundles = $this->entityTypeBundleInfo
->getAllBundleInfo();
ksort($bundles);
$output['bundles'] = $this->dumper
->exportAsRenderable($bundles, $this->t('Bundles'));
$field_types = $this->fieldTypeManager
->getUiDefinitions();
ksort($field_types);
$output['field_types'] = $this->dumper
->exportAsRenderable($field_types, $this->t('Field types'));
$formatter_types = $this->formatterPluginManager
->getDefinitions();
ksort($formatter_types);
$output['formatter_types'] = $this->dumper
->exportAsRenderable($formatter_types, $this->t('Formatter types'));
$widget_types = $this->widgetPluginManager
->getDefinitions();
ksort($widget_types);
$output['widget_types'] = $this->dumper
->exportAsRenderable($widget_types, $this->t('Widget types'));
return $output;
}