Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
| FieldConfigListController | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
| listing | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\field_ui\Controller\FieldConfigListController. | |
| */ | |
| namespace Drupal\field_ui\Controller; | |
| use Drupal\Core\Entity\Controller\EntityListController; | |
| use Drupal\Core\Routing\RouteMatchInterface; | |
| /** | |
| * Defines a controller to list field instances. | |
| */ | |
| class FieldConfigListController extends EntityListController { | |
| /** | |
| * Shows the 'Manage fields' page. | |
| * | |
| * @param string $entity_type_id | |
| * The entity type. | |
| * @param string $bundle | |
| * The entity bundle. | |
| * @param \Drupal\Core\Routing\RouteMatchInterface $route_match | |
| * The current route match. | |
| * | |
| * @return array | |
| * A render array as expected by drupal_render(). | |
| */ | |
| public function listing($entity_type_id = NULL, $bundle = NULL, RouteMatchInterface $route_match = NULL) { | |
| return $this->entityManager()->getListBuilder('field_config')->render($entity_type_id, $bundle); | |
| } | |
| } |