SilverStripe\CKANRegistry\Tests\Model\ResourceFilterTest\InvalidResourceFilter
Represents an invalid {@link ResourceFilter} implementation, used for testing error handling
Synopsis
class InvalidResourceFilter
extends ResourceFilter
implements
TestOnly
{
- // members
- protected $fieldType = HTTPResponse::class;
- // Inherited members from ResourceFilter
- protected FormField $fieldType;
- // Inherited methods from ResourceFilter
- public void getCMSFields()
- public void forTemplate()
- public string getType()
- public array getClientConfig()
- public string|DBField getColumns()
- public string getTitle()
Hierarchy
Members
protected
- $fieldType
- $fieldType
—
SilverStripe\Forms\FormField
Defines the type of {@link FormField} that will be used to render the filter in the CMS. This is defined in subclasses. Filters will render as TextFields by default.
Methods
Inherited from SilverStripe\CKANRegistry\Model\ResourceFilter
public
- forTemplate() — {@inheritdoc}
- getCMSFields()
- getClientConfig() — Return a "schema" that can be provided to client side JavaScript components for client side rendering
- getColumns() — Returns either the selected column's readable label value, or a fixed string representing multiple columns having been selected.
- getTitle() — Use the filter label for GridField CRUD operation result messages
- getType() — Returns the type of the filter, used for summary fields