public ViewListBuilder::buildRow(EntityInterface $view)
Builds a row for an entity in the entity listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.
Return value
array A render array structure of fields for this entity.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- core/modules/views_ui/src/ViewListBuilder.php, line 86
Class
- ViewListBuilder
- Defines a class to build a listing of view entities.
Namespace
Drupal\views_ui
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | public function buildRow(EntityInterface $view ) { $row = parent::buildRow( $view ); return array ( 'data' => array ( 'view_name' => array ( 'data' => array ( '#theme' => 'views_ui_view_info' , '#view' => $view , '#displays' => $this ->getDisplaysList( $view ) ), ), 'description' => array ( 'data' => array ( '#plain_text' => $view ->get( 'description' ), ), 'data-drupal-selector' => 'views-table-filter-text-source' , ), 'tag' => array ( 'data' => array ( '#plain_text' => $view ->get( 'tag' ), ), 'data-drupal-selector' => 'views-table-filter-text-source' , ), 'path' => array ( 'data' => array ( '#theme' => 'item_list' , '#items' => $this ->getDisplayPaths( $view ), '#context' => [ 'list_style' => 'comma-list' ], ), ), 'operations' => $row [ 'operations' ], ), 'title' => $this ->t( 'Machine name: @name' , array ( '@name' => $view ->id())), 'class' => array ( $view ->status() ? 'views-ui-list-enabled' : 'views-ui-list-disabled' ), ); } |
Please login to continue.