views.view.test_content_ajax.yml

Same filename in other branches
  1. 9 core/modules/views/tests/modules/views_test_config/test_views/views.view.test_content_ajax.yml
  2. 8.9.x core/modules/views/tests/modules/views_test_config/test_views/views.view.test_content_ajax.yml
  3. 10 core/modules/views/tests/modules/views_test_config/test_views/views.view.test_content_ajax.yml
core/modules/views/tests/modules/views_test_config/test_views/views.view.test_content_ajax.yml
1 string reference to 'views.view.test_content_ajax'
PaginationAJAXTest::testDefaultFilterPagination in core/modules/views/tests/src/FunctionalJavascript/PaginationAJAXTest.php
Tests if pagination via AJAX works for the filter with default value.

File

core/modules/views/tests/modules/views_test_config/test_views/views.view.test_content_ajax.yml

View source
  1. langcode: en
  2. status: true
  3. dependencies:
  4. module:
  5. - node
  6. - user
  7. id: test_content_ajax
  8. label: Content
  9. module: node
  10. description: 'Find and manage content.'
  11. tag: default
  12. base_table: node_field_data
  13. base_field: nid
  14. display:
  15. default:
  16. display_options:
  17. use_ajax: true
  18. access:
  19. type: perm
  20. options:
  21. perm: 'access content overview'
  22. cache:
  23. type: tag
  24. query:
  25. type: views_query
  26. exposed_form:
  27. type: basic
  28. options:
  29. submit_button: Filter
  30. reset_button: true
  31. reset_button_label: Reset
  32. exposed_sorts_label: 'Sort by'
  33. expose_sort_order: true
  34. sort_asc_label: Asc
  35. sort_desc_label: Desc
  36. pager:
  37. type: full
  38. options:
  39. items_per_page: 50
  40. offset: 0
  41. id: 0
  42. tags:
  43. previous: '‹ Previous'
  44. next: 'Next ›'
  45. first: '« First'
  46. last: 'Last »'
  47. expose:
  48. items_per_page: true
  49. items_per_page_label: 'Items per page'
  50. items_per_page_options: '5, 10, 25, 50'
  51. items_per_page_options_all: false
  52. items_per_page_options_all_label: '- All -'
  53. offset: false
  54. offset_label: Offset
  55. quantity: 9
  56. style:
  57. type: table
  58. options:
  59. grouping: { }
  60. row_class: ''
  61. default_row_class: true
  62. override: true
  63. sticky: true
  64. caption: ''
  65. summary: ''
  66. description: ''
  67. columns:
  68. node_bulk_form: node_bulk_form
  69. title: title
  70. type: type
  71. name: name
  72. status: status
  73. changed: changed
  74. edit_node: edit_node
  75. delete_node: delete_node
  76. dropbutton: dropbutton
  77. timestamp: title
  78. info:
  79. node_bulk_form:
  80. align: ''
  81. separator: ''
  82. empty_column: false
  83. responsive: ''
  84. title:
  85. sortable: true
  86. default_sort_order: asc
  87. align: ''
  88. separator: ''
  89. empty_column: false
  90. responsive: ''
  91. type:
  92. sortable: true
  93. default_sort_order: asc
  94. align: ''
  95. separator: ''
  96. empty_column: false
  97. responsive: ''
  98. name:
  99. sortable: false
  100. default_sort_order: asc
  101. align: ''
  102. separator: ''
  103. empty_column: false
  104. responsive: priority-low
  105. status:
  106. sortable: true
  107. default_sort_order: asc
  108. align: ''
  109. separator: ''
  110. empty_column: false
  111. responsive: ''
  112. changed:
  113. sortable: true
  114. default_sort_order: desc
  115. align: ''
  116. separator: ''
  117. empty_column: false
  118. responsive: priority-low
  119. edit_node:
  120. sortable: false
  121. default_sort_order: asc
  122. align: ''
  123. separator: ''
  124. empty_column: false
  125. responsive: ''
  126. delete_node:
  127. sortable: false
  128. default_sort_order: asc
  129. align: ''
  130. separator: ''
  131. empty_column: false
  132. responsive: ''
  133. dropbutton:
  134. sortable: false
  135. default_sort_order: asc
  136. align: ''
  137. separator: ''
  138. empty_column: false
  139. responsive: ''
  140. timestamp:
  141. sortable: false
  142. default_sort_order: asc
  143. align: ''
  144. separator: ''
  145. empty_column: false
  146. responsive: ''
  147. default: changed
  148. empty_table: true
  149. row:
  150. type: fields
  151. fields:
  152. node_bulk_form:
  153. id: node_bulk_form
  154. table: node
  155. field: node_bulk_form
  156. label: ''
  157. exclude: false
  158. alter:
  159. alter_text: false
  160. element_class: ''
  161. element_default_classes: true
  162. empty: ''
  163. hide_empty: false
  164. empty_zero: false
  165. hide_alter_empty: true
  166. plugin_id: node_bulk_form
  167. entity_type: node
  168. title:
  169. id: title
  170. table: node_field_data
  171. field: title
  172. label: Title
  173. exclude: false
  174. alter:
  175. alter_text: false
  176. element_class: ''
  177. element_default_classes: true
  178. empty: ''
  179. hide_empty: false
  180. empty_zero: false
  181. hide_alter_empty: true
  182. entity_type: node
  183. entity_field: title
  184. type: string
  185. settings:
  186. link_to_entity: true
  187. plugin_id: field
  188. type:
  189. id: type
  190. table: node_field_data
  191. field: type
  192. relationship: none
  193. group_type: group
  194. admin_label: ''
  195. label: 'Content type'
  196. exclude: false
  197. alter:
  198. alter_text: false
  199. text: ''
  200. make_link: false
  201. path: ''
  202. absolute: false
  203. external: false
  204. replace_spaces: false
  205. path_case: none
  206. trim_whitespace: false
  207. alt: ''
  208. rel: ''
  209. link_class: ''
  210. prefix: ''
  211. suffix: ''
  212. target: ''
  213. nl2br: false
  214. max_length: 0
  215. word_boundary: true
  216. ellipsis: true
  217. more_link: false
  218. more_link_text: ''
  219. more_link_path: ''
  220. strip_tags: false
  221. trim: false
  222. preserve_tags: ''
  223. html: false
  224. element_type: ''
  225. element_class: ''
  226. element_label_type: ''
  227. element_label_class: ''
  228. element_label_colon: true
  229. element_wrapper_type: ''
  230. element_wrapper_class: ''
  231. element_default_classes: true
  232. empty: ''
  233. hide_empty: false
  234. empty_zero: false
  235. hide_alter_empty: true
  236. click_sort_column: target_id
  237. type: entity_reference_label
  238. settings:
  239. link: false
  240. group_column: target_id
  241. group_columns: { }
  242. group_rows: true
  243. delta_limit: 0
  244. delta_offset: 0
  245. delta_reversed: false
  246. delta_first_last: false
  247. multi_type: separator
  248. separator: ', '
  249. field_api_classes: false
  250. entity_type: node
  251. entity_field: type
  252. plugin_id: field
  253. name:
  254. id: name
  255. table: users_field_data
  256. field: name
  257. relationship: uid
  258. label: Author
  259. exclude: false
  260. alter:
  261. alter_text: false
  262. element_class: ''
  263. element_default_classes: true
  264. empty: ''
  265. hide_empty: false
  266. empty_zero: false
  267. hide_alter_empty: true
  268. plugin_id: field
  269. type: user_name
  270. entity_type: user
  271. entity_field: name
  272. status:
  273. id: status
  274. table: node_field_data
  275. field: status
  276. label: Status
  277. exclude: false
  278. alter:
  279. alter_text: false
  280. element_class: ''
  281. element_default_classes: true
  282. empty: ''
  283. hide_empty: false
  284. empty_zero: false
  285. hide_alter_empty: true
  286. type: boolean
  287. settings:
  288. format: custom
  289. format_custom_true: Published
  290. format_custom_false: Unpublished
  291. plugin_id: field
  292. entity_type: node
  293. entity_field: status
  294. changed:
  295. id: changed
  296. table: node_field_data
  297. field: changed
  298. label: Updated
  299. exclude: false
  300. alter:
  301. alter_text: false
  302. element_class: ''
  303. element_default_classes: true
  304. empty: ''
  305. hide_empty: false
  306. empty_zero: false
  307. hide_alter_empty: true
  308. type: timestamp
  309. settings:
  310. date_format: short
  311. custom_date_format: ''
  312. timezone: ''
  313. tooltip:
  314. date_format: long
  315. custom_date_format: ''
  316. time_diff:
  317. enabled: false
  318. future_format: '@interval hence'
  319. past_format: '@interval ago'
  320. granularity: 2
  321. refresh: 60
  322. plugin_id: field
  323. entity_type: node
  324. entity_field: changed
  325. operations:
  326. id: operations
  327. table: node
  328. field: operations
  329. relationship: none
  330. group_type: group
  331. admin_label: ''
  332. label: Operations
  333. exclude: false
  334. alter:
  335. alter_text: false
  336. text: ''
  337. make_link: false
  338. path: ''
  339. absolute: false
  340. external: false
  341. replace_spaces: false
  342. path_case: none
  343. trim_whitespace: false
  344. alt: ''
  345. rel: ''
  346. link_class: ''
  347. prefix: ''
  348. suffix: ''
  349. target: ''
  350. nl2br: false
  351. max_length: 0
  352. word_boundary: true
  353. ellipsis: true
  354. more_link: false
  355. more_link_text: ''
  356. more_link_path: ''
  357. strip_tags: false
  358. trim: false
  359. preserve_tags: ''
  360. html: false
  361. element_type: ''
  362. element_class: ''
  363. element_label_type: ''
  364. element_label_class: ''
  365. element_label_colon: true
  366. element_wrapper_type: ''
  367. element_wrapper_class: ''
  368. element_default_classes: true
  369. empty: ''
  370. hide_empty: false
  371. empty_zero: false
  372. hide_alter_empty: true
  373. destination: true
  374. plugin_id: entity_operations
  375. filters:
  376. status_extra:
  377. id: status_extra
  378. table: node_field_data
  379. field: status_extra
  380. operator: '='
  381. value: false
  382. plugin_id: node_status
  383. group: 1
  384. entity_type: node
  385. status:
  386. id: status
  387. table: node_field_data
  388. field: status
  389. relationship: none
  390. group_type: group
  391. admin_label: ''
  392. operator: '='
  393. value: '1'
  394. group: 1
  395. exposed: true
  396. expose:
  397. operator_id: ''
  398. label: Status
  399. description: ''
  400. use_operator: false
  401. operator: status_op
  402. identifier: status
  403. required: false
  404. remember: false
  405. multiple: false
  406. remember_roles:
  407. authenticated: authenticated
  408. is_grouped: true
  409. group_info:
  410. label: 'Published status'
  411. description: ''
  412. identifier: status
  413. optional: true
  414. widget: select
  415. multiple: false
  416. remember: false
  417. default_group: All
  418. default_group_multiple: { }
  419. group_items:
  420. 1:
  421. title: Published
  422. operator: '='
  423. value: '1'
  424. 2:
  425. title: Unpublished
  426. operator: '='
  427. value: '0'
  428. plugin_id: boolean
  429. entity_type: node
  430. entity_field: status
  431. type:
  432. id: type
  433. table: node_field_data
  434. field: type
  435. relationship: none
  436. group_type: group
  437. admin_label: ''
  438. operator: in
  439. value: { }
  440. group: 1
  441. exposed: true
  442. expose:
  443. operator_id: type_op
  444. label: 'Content type'
  445. description: ''
  446. use_operator: false
  447. operator: type_op
  448. identifier: type
  449. required: false
  450. remember: false
  451. multiple: false
  452. remember_roles:
  453. authenticated: authenticated
  454. reduce: false
  455. is_grouped: false
  456. group_info:
  457. label: ''
  458. description: ''
  459. identifier: ''
  460. optional: true
  461. widget: select
  462. multiple: false
  463. remember: false
  464. default_group: All
  465. default_group_multiple: { }
  466. group_items: { }
  467. plugin_id: bundle
  468. entity_type: node
  469. entity_field: type
  470. title:
  471. id: title
  472. table: node_field_data
  473. field: title
  474. relationship: none
  475. group_type: group
  476. admin_label: ''
  477. operator: contains
  478. value: ''
  479. group: 1
  480. exposed: true
  481. expose:
  482. operator_id: title_op
  483. label: Title
  484. description: ''
  485. use_operator: false
  486. operator: title_op
  487. identifier: title
  488. required: false
  489. remember: false
  490. multiple: false
  491. remember_roles:
  492. authenticated: authenticated
  493. is_grouped: false
  494. group_info:
  495. label: ''
  496. description: ''
  497. identifier: ''
  498. optional: true
  499. widget: select
  500. multiple: false
  501. remember: false
  502. default_group: All
  503. default_group_multiple: { }
  504. group_items: { }
  505. plugin_id: string
  506. entity_type: node
  507. entity_field: title
  508. langcode:
  509. id: langcode
  510. table: node_field_data
  511. field: langcode
  512. relationship: none
  513. group_type: group
  514. admin_label: ''
  515. operator: in
  516. value: { }
  517. group: 1
  518. exposed: true
  519. expose:
  520. operator_id: langcode_op
  521. label: Language
  522. description: ''
  523. use_operator: false
  524. operator: langcode_op
  525. identifier: langcode
  526. required: false
  527. remember: false
  528. multiple: false
  529. remember_roles:
  530. authenticated: authenticated
  531. reduce: false
  532. is_grouped: false
  533. group_info:
  534. label: ''
  535. description: ''
  536. identifier: ''
  537. optional: true
  538. widget: select
  539. multiple: false
  540. remember: false
  541. default_group: All
  542. default_group_multiple: { }
  543. group_items: { }
  544. plugin_id: language
  545. entity_type: node
  546. entity_field: langcode
  547. sorts: { }
  548. title: Content
  549. empty:
  550. area_text_custom:
  551. id: area_text_custom
  552. table: views
  553. field: area_text_custom
  554. empty: true
  555. content: 'No content available.'
  556. plugin_id: text_custom
  557. arguments: { }
  558. relationships:
  559. uid:
  560. id: uid
  561. table: node_field_data
  562. field: uid
  563. admin_label: author
  564. required: true
  565. plugin_id: standard
  566. show_admin_links: false
  567. filter_groups:
  568. operator: AND
  569. groups:
  570. 1: AND
  571. display_extenders: { }
  572. display_plugin: default
  573. display_title: Default
  574. id: default
  575. position: 0
  576. cache_metadata:
  577. contexts:
  578. - 'languages:language_content'
  579. - 'languages:language_interface'
  580. - url
  581. - url.query_args
  582. - user
  583. - 'user.node_grants:view'
  584. - user.permissions
  585. max-age: 0
  586. tags: { }
  587. page_1:
  588. display_options:
  589. path: test-content-ajax
  590. menu:
  591. type: 'default tab'
  592. title: Content
  593. description: ''
  594. menu_name: admin
  595. weight: -10
  596. context: ''
  597. tab_options:
  598. type: normal
  599. title: Content
  600. description: 'Find and manage content'
  601. menu_name: admin
  602. weight: -10
  603. display_extenders: { }
  604. display_plugin: page
  605. display_title: Page
  606. id: page_1
  607. position: 1
  608. cache_metadata:
  609. contexts:
  610. - 'languages:language_content'
  611. - 'languages:language_interface'
  612. - url
  613. - url.query_args
  614. - user
  615. - 'user.node_grants:view'
  616. - user.permissions
  617. max-age: 0
  618. tags: { }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.