Syntro\SilverStripeElementalBaseitems\Elements\BootstrapImageSectionElement
Basic image element using Bootstrap markup
- Author: Matthias Leutenegger <hello@syntro.ch>
Synopsis
class BootstrapImageSectionElement
extends BaseElement
{
- // members
- private static string $block_name = 'image-section';
- private static string $icon = 'font-icon-block-file';
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static string $table_name = 'ImageSectionElement';
- private static string $singular_name = 'image block';
- private static string $plural_name = 'image blocks';
- private static string $description = 'image block';
- private static boolean $allow_image_background = false;
- private static array $background_colors = ;
- private static array $text_colors_by_background = ;
- private static array $text_colors = ;
- private static boolean $inline_editable = true;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public string getSummary()
- protected array provideBlockSchema()
- public string getType()
Hierarchy
Extends
- DNADesign\Elemental\Models\BaseElement
Members
private
- $allow_image_background
- $background_colors
- $block_name
—
string
This defines the block name in the CSS - $db
- $description
- $has_one
- $icon
- $inline_editable
- $owns
- $plural_name
- $singular_name
- $table_name
- $text_colors
- $text_colors_by_background
Methods
protected
- provideBlockSchema() — provideBlockSchema
public
- fieldLabels() — fieldLabels - apply labels
- getCMSFields() — Re-title the HTML field to Image
- getSummary() — getSummary - returns a summary of this block
- getType() — getType