Implement ::generateSampleValue() method for Rabbit Hole field type

Created on 26 June 2023, about 1 year ago
Updated 27 June 2023, about 1 year ago

Problem/Motivation

Sample values are used when populating site with placeholder content during site building or profiling.

Proposed resolution

Implement ::generateSampleValue() method in \Drupal\rabbit_hole\Plugin\Field\FieldType\RabbitHole class. It should randomly set one of the available actions. If action is "Page redirect", additional settings should be added.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024