BenManu\SimpleStyleguide\SimpleStyleguideController
Synopsis
class SimpleStyleguideController
extends Controller
{
- // members
- private static array $color_swatches = ;
- private static string $placeholder_image_url = 'benmanu/silverstripe-simple-styleguide: images/placeholder.png';
- private static array $allowed_actions = ;
- private static string $url_segment = '_styleguide';
- // methods
- public void index()
- public ArrayData getStyleguideData()
- public Form getTestForm()
- public HTMLText getContent()
- public ArrayList getColorSwatches()
- public string getPlaceholderImageURL()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $allowed_actions — array
- $color_swatches — array
- $placeholder_image_url — string
- $url_segment
Methods
public
- getColorSwatches()
- getContent() — Emulate an HTMLEditorField output useful for testing shortcodes and output extensions etc.
- getPlaceholderImageURL()
- getStyleguideData() — Provides access to any custom function on the controller for use on the template output.
- getTestForm() — Return a form with fields to match rendering through controller/template output.
- index() — Runs the permissiion checks, and setup of the controller view.