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. 11.x 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. anonymous: '0'
  455. administrator: '0'
  456. reduce: false
  457. is_grouped: false
  458. group_info:
  459. label: ''
  460. description: ''
  461. identifier: ''
  462. optional: true
  463. widget: select
  464. multiple: false
  465. remember: false
  466. default_group: All
  467. default_group_multiple: { }
  468. group_items: { }
  469. plugin_id: bundle
  470. entity_type: node
  471. entity_field: type
  472. title:
  473. id: title
  474. table: node_field_data
  475. field: title
  476. relationship: none
  477. group_type: group
  478. admin_label: ''
  479. operator: contains
  480. value: ''
  481. group: 1
  482. exposed: true
  483. expose:
  484. operator_id: title_op
  485. label: Title
  486. description: ''
  487. use_operator: false
  488. operator: title_op
  489. identifier: title
  490. required: false
  491. remember: false
  492. multiple: false
  493. remember_roles:
  494. authenticated: authenticated
  495. anonymous: '0'
  496. administrator: '0'
  497. is_grouped: false
  498. group_info:
  499. label: ''
  500. description: ''
  501. identifier: ''
  502. optional: true
  503. widget: select
  504. multiple: false
  505. remember: false
  506. default_group: All
  507. default_group_multiple: { }
  508. group_items: { }
  509. plugin_id: string
  510. entity_type: node
  511. entity_field: title
  512. langcode:
  513. id: langcode
  514. table: node_field_data
  515. field: langcode
  516. relationship: none
  517. group_type: group
  518. admin_label: ''
  519. operator: in
  520. value: { }
  521. group: 1
  522. exposed: true
  523. expose:
  524. operator_id: langcode_op
  525. label: Language
  526. description: ''
  527. use_operator: false
  528. operator: langcode_op
  529. identifier: langcode
  530. required: false
  531. remember: false
  532. multiple: false
  533. remember_roles:
  534. authenticated: authenticated
  535. anonymous: '0'
  536. administrator: '0'
  537. reduce: false
  538. is_grouped: false
  539. group_info:
  540. label: ''
  541. description: ''
  542. identifier: ''
  543. optional: true
  544. widget: select
  545. multiple: false
  546. remember: false
  547. default_group: All
  548. default_group_multiple: { }
  549. group_items: { }
  550. plugin_id: language
  551. entity_type: node
  552. entity_field: langcode
  553. sorts: { }
  554. title: Content
  555. empty:
  556. area_text_custom:
  557. id: area_text_custom
  558. table: views
  559. field: area_text_custom
  560. empty: true
  561. content: 'No content available.'
  562. plugin_id: text_custom
  563. arguments: { }
  564. relationships:
  565. uid:
  566. id: uid
  567. table: node_field_data
  568. field: uid
  569. admin_label: author
  570. required: true
  571. plugin_id: standard
  572. show_admin_links: false
  573. filter_groups:
  574. operator: AND
  575. groups:
  576. 1: AND
  577. display_extenders: { }
  578. display_plugin: default
  579. display_title: Default
  580. id: default
  581. position: 0
  582. cache_metadata:
  583. contexts:
  584. - 'languages:language_content'
  585. - 'languages:language_interface'
  586. - url
  587. - url.query_args
  588. - user
  589. - 'user.node_grants:view'
  590. - user.permissions
  591. max-age: 0
  592. tags: { }
  593. page_1:
  594. display_options:
  595. path: test-content-ajax
  596. menu:
  597. type: 'default tab'
  598. title: Content
  599. description: ''
  600. menu_name: admin
  601. weight: -10
  602. context: ''
  603. tab_options:
  604. type: normal
  605. title: Content
  606. description: 'Find and manage content'
  607. menu_name: admin
  608. weight: -10
  609. display_extenders: { }
  610. display_plugin: page
  611. display_title: Page
  612. id: page_1
  613. position: 1
  614. cache_metadata:
  615. contexts:
  616. - 'languages:language_content'
  617. - 'languages:language_interface'
  618. - url
  619. - url.query_args
  620. - user
  621. - 'user.node_grants:view'
  622. - user.permissions
  623. max-age: 0
  624. tags: { }

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